csync_update: do not force writing on the db for directory with a changed date

Fixes #2584
This commit is contained in:
Olivier Goffart 2014-12-16 13:02:32 +01:00
parent b1d392e415
commit a2803e4f5f

View file

@ -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) {