Check if journal exists to do update detection.

This commit is contained in:
Andreas Schneider 2008-04-29 09:27:49 +02:00
parent 0ff11694e9
commit 0377c034f6

View file

@ -89,9 +89,12 @@ static int csync_detect_update(CSYNC *ctx, const char *file, const csync_vio_fil
goto out;
}
/* TODO: Update detection */
/* if current replica, search for inode and compare hash */
st->instruction = CSYNC_INSTRUCTION_NONE;
if (ctx->journal.exists) {
st->instruction = CSYNC_INSTRUCTION_NONE;
} else {
st->instruction = CSYNC_INSTRUCTION_NEW;
goto out;
}
out:
st->inode = fs->inode;