Revert "Improve the check for if we have the same hash really found."

This reverts commit 247aaeaacb.

Conflicts:

	src/csync_update.c
This commit is contained in:
Andreas Schneider 2008-06-02 18:07:25 +02:00
parent 24d76f3e20
commit 4eb9965046

View file

@ -91,13 +91,7 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, const csync_vio_fi
/* Update detection */ /* Update detection */
if (ctx->journal.exists) { if (ctx->journal.exists) {
tmp = csync_journal_get_stat_by_hash(ctx, h); tmp = csync_journal_get_stat_by_hash(ctx, h);
if (tmp != NULL && h == tmp->phash) { if (tmp == NULL) {
/* we have an update! */
if (modtime > tmp->modtime) {
st->instruction = CSYNC_INSTRUCTION_EVAL;
goto out;
}
} else {
/* check if the file has been renamed */ /* check if the file has been renamed */
if (ctx->current == LOCAL_REPLICA) { if (ctx->current == LOCAL_REPLICA) {
tmp = csync_journal_get_stat_by_inode(ctx, fs->inode); tmp = csync_journal_get_stat_by_inode(ctx, fs->inode);