mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
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:
parent
24d76f3e20
commit
4eb9965046
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue