From 9594f0d0bc0a963798b723b612270138178b901a Mon Sep 17 00:00:00 2001 From: Tianshan Qu Date: Thu, 15 May 2025 16:12:14 +0800 Subject: [PATCH] Fix sync with hintLength Signed-off-by: Tianshan Qu --- src/meta/store/ops/BatchOperation.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meta/store/ops/BatchOperation.cc b/src/meta/store/ops/BatchOperation.cc index cabfe64..af79211 100644 --- a/src/meta/store/ops/BatchOperation.cc +++ b/src/meta/store/ops/BatchOperation.cc @@ -273,7 +273,7 @@ CoTryTask BatchedOp::queryLength(const Inode &inode, XLOGF(DBG, "don't need update {}, current {}, hint {}", inode.id, currLength, *hintLength); co_return currLength; } - if (hintLength->truncateVer == currLength.truncateVer && hintLength->length > currLength.truncateVer) { + if (hintLength->truncateVer == currLength.truncateVer && hintLength->length > currLength.length) { XLOGF(DBG, "update {} to hint {}, current {}", inode.id, *hintLength, currLength); co_return *hintLength; } @@ -748,4 +748,4 @@ void BatchedOp::finish(const Result &result) { Operation::finish(result); } -} // namespace hf3fs::meta::server \ No newline at end of file +} // namespace hf3fs::meta::server