From bc1e59a048c1cf7f4606ba037c7a3d07f9910d02 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 20 Aug 2012 19:10:03 +0300 Subject: [PATCH] Update the md5 also if the instruction is not UPDATE. --- src/csync_propagate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 45586c047..32a8807b6 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -1118,6 +1118,10 @@ static int _csync_correct_id(CSYNC *ctx) { } else { tfs = c_rbtree_node_data(node); tfs->md5 = _get_md5(ctx, path); + if( tfs->instruction != CSYNC_INSTRUCTION_UPDATED ) { + /* set instruction for the statedb merger */ + tfs->instruction = CSYNC_INSTRUCTION_UPDATED; + } CSYNC_LOG(CSYNC_LOG_PRIORITY_TRACE, "MD5 for dir: %s %s", tfs->path, tfs->md5); }