From 4eb99650463f3532a33ead43ce708783eb30061a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 2 Jun 2008 18:07:25 +0200 Subject: [PATCH] Revert "Improve the check for if we have the same hash really found." This reverts commit 247aaeaacbd9f936da19631ac9b9df0bc1ee17d6. Conflicts: src/csync_update.c --- src/csync_update.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/csync_update.c b/src/csync_update.c index cc8528bdd5..47d8cb0462 100644 --- a/src/csync_update.c +++ b/src/csync_update.c @@ -91,13 +91,7 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, const csync_vio_fi /* Update detection */ if (ctx->journal.exists) { tmp = csync_journal_get_stat_by_hash(ctx, h); - if (tmp != NULL && h == tmp->phash) { - /* we have an update! */ - if (modtime > tmp->modtime) { - st->instruction = CSYNC_INSTRUCTION_EVAL; - goto out; - } - } else { + if (tmp == NULL) { /* check if the file has been renamed */ if (ctx->current == LOCAL_REPLICA) { tmp = csync_journal_get_stat_by_inode(ctx, fs->inode);