mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Check if journal exists to do update detection.
This commit is contained in:
parent
0ff11694e9
commit
0377c034f6
1 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue