From a2803e4f5f39f4248159cec206eb0e811882cf96 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 16 Dec 2014 13:02:32 +0100 Subject: [PATCH] csync_update: do not force writing on the db for directory with a changed date Fixes #2584 --- csync/src/csync_update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c index b7eff2bac..b947f0992 100644 --- a/csync/src/csync_update.c +++ b/csync/src/csync_update.c @@ -761,7 +761,9 @@ int csync_ftw(CSYNC *ctx, const char *uri, csync_walker_fn fn, if (ctx->current_fs && !ctx->current_fs->child_modified && ctx->current_fs->instruction == CSYNC_INSTRUCTION_EVAL) { ctx->current_fs->instruction = CSYNC_INSTRUCTION_NONE; - ctx->current_fs->should_update_etag = true; + if (ctx->current == REMOTE_REPLICA) { + ctx->current_fs->should_update_etag = true; + } } if (ctx->current_fs && previous_fs && ctx->current_fs->has_ignored_files) {