Only request file id for remote replica

This commit is contained in:
Olivier Goffart 2012-12-06 16:28:37 +01:00
parent 5ff6baaf85
commit b989518af3

View file

@ -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;