mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Fix flags for the statedb tree merger.
This commit is contained in:
parent
8753352e5e
commit
6d3a7d84c1
1 changed files with 9 additions and 3 deletions
|
@ -419,8 +419,11 @@ static int _csync_remove_file(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
out:
|
||||
SAFE_FREE(uri);
|
||||
|
||||
/* Write to statedb, to try again next run. */
|
||||
/* set instruction for the statedb merger */
|
||||
if (rc != 0) {
|
||||
/* Write file to statedb, to try to sync again on the next run. */
|
||||
st->instruction = CSYNC_INSTRUCTION_NONE;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
@ -510,7 +513,10 @@ static int _csync_new_dir(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
out:
|
||||
SAFE_FREE(uri);
|
||||
|
||||
/* set instruction for the statedb merger */
|
||||
if (rc != 0) {
|
||||
st->instruction = CSYNC_INSTRUCTION_ERROR;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue