Removed a stat call that is just for a file size check.

This commit is contained in:
Klaas Freitag 2012-03-29 20:06:38 +02:00
parent 8212553cbe
commit 0d71347508

View file

@ -273,7 +273,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
rc = -1; rc = -1;
goto out; goto out;
} }
#if 0
if (csync_vio_stat(ctx, turi, tstat) < 0) { if (csync_vio_stat(ctx, turi, tstat) < 0) {
switch (errno) { switch (errno) {
case ENOMEM: case ENOMEM:
@ -298,7 +298,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
rc = 1; rc = 1;
goto out; goto out;
} }
#endif
/* override original file */ /* override original file */
ctx->replica = drep; ctx->replica = drep;
if (csync_vio_rename(ctx, turi, duri) < 0) { if (csync_vio_rename(ctx, turi, duri) < 0) {