mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
Removed a stat call that is just for a file size check.
This commit is contained in:
parent
8212553cbe
commit
0d71347508
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue