mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +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 */
|
/* 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);
|
||||||
|
|
Loading…
Reference in a new issue