From 58aaf983696fd7f04d4e102a9843a928d2cf87e3 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 6 Dec 2012 19:38:30 +0100 Subject: [PATCH] Only request the id for REMOTE_REPLICA after mkdir --- src/csync_propagate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 73aa8a1cea..b7f90d7db1 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -914,10 +914,12 @@ static int _csync_new_dir(CSYNC *ctx, csync_file_stat_t *st) { csync_vio_utimes(ctx, uri, times); - tmd5 = _get_md5(ctx, st->path); - if(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 */