Update the md5 also if the instruction is not UPDATE.

This commit is contained in:
Klaas Freitag 2012-08-20 19:10:03 +03:00
parent dba2c1d105
commit 868a07c322

View file

@ -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);
}