You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 18:05:50 UTC
(opendal-yinyang) branch xuanwo/managed-directory-sync updated: fix: compare canonical content descriptors directly
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch xuanwo/managed-directory-sync
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git
The following commit(s) were added to refs/heads/xuanwo/managed-directory-sync by this push:
new 89d192a fix: compare canonical content descriptors directly
89d192a is described below
commit 89d192a16cae792f536c3f1615aee9ad99b2f41f
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 02:05:43 2026 +0800
fix: compare canonical content descriptors directly
Co-authored-by: Chojan Shang <ps...@apache.org>
---
src/replica/directory.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/replica/directory.rs b/src/replica/directory.rs
index 30d24bd..825a736 100644
--- a/src/replica/directory.rs
+++ b/src/replica/directory.rs
@@ -957,7 +957,7 @@ async fn canonical_matches(
let mut source =
tokio::fs::File::from_std(replica.open_artifact(&captured.artifact.id)?);
let content = ContentId::calculate(&mut source).await?;
- Ok(local.executable == remote.executable() && content == *file.content_id())
+ Ok(local.executable == remote.executable() && content == file.content_id())
}
_ => Ok(false),
}