mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Only request file id for remote replica
This commit is contained in:
parent
5ff6baaf85
commit
b989518af3
1 changed files with 6 additions and 4 deletions
|
@ -987,10 +987,12 @@ static int _csync_sync_dir(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
times[0].tv_usec = times[1].tv_usec = 0;
|
||||
|
||||
csync_vio_utimes(ctx, uri, times);
|
||||
tmd5 = _get_md5(ctx, st->path);
|
||||
if(tmd5) {
|
||||
SAFE_FREE(st->md5);
|
||||
st->md5 = tmd5;
|
||||
if (ctx->replica == REMOTE_REPLICA) {
|
||||
tmd5 = _get_md5(ctx, st->path);
|
||||
if(tmd5) {
|
||||
SAFE_FREE(st->md5);
|
||||
st->md5 = tmd5;
|
||||
}
|
||||
}
|
||||
/* set instruction for the statedb merger */
|
||||
st->instruction = CSYNC_INSTRUCTION_UPDATED;
|
||||
|
|
Loading…
Reference in a new issue