Only request the id for REMOTE_REPLICA after mkdir

This commit is contained in:
Olivier Goffart 2012-12-06 19:38:30 +01:00 committed by Klaas Freitag
parent fa0c458bb3
commit 58aaf98369

View File

@ -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 */