From 3ee7dff385d77490002780d991ff3b84607b12a5 Mon Sep 17 00:00:00 2001 From: Herve Eruam Date: Fri, 3 Jan 2025 07:22:06 +0100 Subject: [PATCH] Fix updateTree update in case of Edit. --- src/libsyncengine/propagation/executor/executorworker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsyncengine/propagation/executor/executorworker.cpp b/src/libsyncengine/propagation/executor/executorworker.cpp index d926b3799..c8b757368 100644 --- a/src/libsyncengine/propagation/executor/executorworker.cpp +++ b/src/libsyncengine/propagation/executor/executorworker.cpp @@ -2183,11 +2183,11 @@ ExitInfo ExecutorWorker::propagateEditToDbAndTree(SyncOpPtr syncOp, const NodeId if (!syncOp->omit()) { // ID might have changed in the case of a delete+create if (!_syncPal->updateTree(syncOp->targetSide()) - ->updateNodeId(syncOp->affectedNode(), syncOp->targetSide() == ReplicaSide::Local ? localId : remoteId)) { + ->updateNodeId(syncOp->correspondingNode(), + syncOp->targetSide() == ReplicaSide::Local ? localId : remoteId)) { LOG_SYNCPAL_WARN(_logger, "Error in UpdateTreeWorker::updateNodeId"); return ExitCode::DataError; } - syncOp->correspondingNode()->setLastModified(newLastModTime); } node = syncOp->correspondingNode();