mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 21:46:03 +03:00
Fix condition on when atomar push is allowed, never for local files.
This commit is contained in:
parent
77d71eb080
commit
c0f1f36f59
1 changed files with 6 additions and 2 deletions
|
@ -48,7 +48,11 @@ static int _csync_cleanup_cmp(const void *a, const void *b) {
|
|||
|
||||
static bool _push_to_tmp_first(CSYNC *ctx)
|
||||
{
|
||||
if( ctx->current == REMOTE_REPLCIA && !ctx->options.remote_push_atomar ) return true;
|
||||
if( ctx->current == REMOTE_REPLCIA ) return true; /* Always push to tmp for destination local file system */
|
||||
|
||||
/* If destination is the remote replica check if the switch is set. */
|
||||
if( !ctx->options.remote_push_atomar ) return true; /* DO push to tmp first */
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -150,7 +154,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
goto out;
|
||||
}
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE,
|
||||
"Remote repository atomar push enabled for %s.", turi );
|
||||
"Remote repository atomar push enabled for %s (%d).", turi, ctx->current);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue