From 410b2deee08f480fdeabcc15a22fb2f9b9986f7f Mon Sep 17 00:00:00 2001 From: bsbds <69835502+bsbds@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:18:10 +0800 Subject: [PATCH] fixup!: update debug for rocks transaction Signed-off-by: bsbds <69835502+bsbds@users.noreply.github.com> --- crates/engine/src/rocksdb_engine/transaction.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/engine/src/rocksdb_engine/transaction.rs b/crates/engine/src/rocksdb_engine/transaction.rs index 94ebfd7bd..6e97e6807 100644 --- a/crates/engine/src/rocksdb_engine/transaction.rs +++ b/crates/engine/src/rocksdb_engine/transaction.rs @@ -365,10 +365,14 @@ impl Inner { } } +#[allow(clippy::missing_fields_in_debug)] // `Transaction` does not implement `Debug` impl std::fmt::Debug for Inner { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.debug_struct("RocksTransaction") .field("db", &self.db) + .field("write_ops", &self.write_ops) + .field("engine_size", &self.engine_size) + .field("txn_size", &self.txn_size) .finish() } }