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 20:33:02 UTC

(opendal-yinyang) branch xuanwo/managed-sync-reconciliation updated: debug: print actual condition values on mismatch

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/managed-sync-reconciliation
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git


The following commit(s) were added to refs/heads/xuanwo/managed-sync-reconciliation by this push:
     new c0ab860  debug: print actual condition values on mismatch
c0ab860 is described below

commit c0ab860b42345b730fd4e4befed675245044e4ec
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 04:32:56 2026 +0800

    debug: print actual condition values on mismatch
    
    Co-authored-by: Chojan Shang <ps...@apache.org>
---
 crates/core/src/transaction.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/crates/core/src/transaction.rs b/crates/core/src/transaction.rs
index 7928c4a..60a58c4 100644
--- a/crates/core/src/transaction.rs
+++ b/crates/core/src/transaction.rs
@@ -95,6 +95,12 @@ impl Condition {
             );
             part(snapshot.node(id).await?.as_ref(), self.key[0])?
         };
+        if actual != self.expected {
+            eprintln!(
+                "yy-core: condition actual tag={} actual={actual:?} expected={:?}",
+                self.key[0], self.expected
+            );
+        }
         Ok(actual == self.expected)
     }
 }