Skip to content

Commit a2e3e2d

Browse files
committed
Merge branch 'refactor/physical_plan_trait' of github.com:zhang2014/datafuse into refactor/physical_plan_trait
2 parents a93af1b + bf2f733 commit a2e3e2d

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ reqwest-hickory-resolver = "0.2"
467467
ringbuffer = "0.14.2"
468468
rmp-serde = "1.1.1"
469469
roaring = { version = "^0.10", features = ["serde"] }
470-
rotbl = { version = "0.2.7", features = [] }
470+
rotbl = { version = "0.2.8", features = [] }
471471
rust_decimal = "1.26"
472472
rustix = "0.38.37"
473473
rustls = { version = "0.23.27", features = ["ring", "tls12"], default-features = false }

src/meta/raft-store/src/sm_v003/writer_v003.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use databend_common_meta_types::snapshot_db::DB;
1919
use databend_common_meta_types::sys_data::SysData;
2020
use futures::Stream;
2121
use futures_util::TryStreamExt;
22-
use log::debug;
2322
use log::info;
2423
use rotbl::v001::SeqMarked;
2524
use tokio::sync::mpsc;
@@ -93,7 +92,7 @@ impl WriterV003 {
9392
mut kv_rx: mpsc::Receiver<WriteEntry<(String, SeqMarked), (MetaSnapshotId, SysData)>>,
9493
) -> Result<DB, io::Error> {
9594
while let Some(ent) = kv_rx.blocking_recv() {
96-
debug!(entry :? =(&ent); "write kv");
95+
// debug!(entry :? =(&ent); "write kv");
9796

9897
let (k, v) = match ent {
9998
WriteEntry::Data(ent) => ent,

src/meta/service/src/store/lock_guards.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ where T: fmt::Display
5858
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
5959
write!(
6060
f,
61-
"StateMachineLock-Write-Guard({}): {}",
62-
self.purpose, self.inner
61+
"StateMachineLock-Write-Guard: {} {}",
62+
self.inner, self.purpose,
6363
)
6464
}
6565
}
@@ -68,8 +68,8 @@ impl<T: ?Sized> Drop for WriteGuard<'_, T> {
6868
fn drop(&mut self) {
6969
let elapsed = self.acquired.elapsed();
7070
info!(
71-
"StateMachineLock-Write-Guard({}) released after {:?}",
72-
self.purpose, elapsed
71+
"StateMachineLock-Write-Release: total: {:?}; {}",
72+
elapsed, self.purpose,
7373
);
7474
}
7575
}
@@ -105,8 +105,8 @@ where T: fmt::Display
105105
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
106106
write!(
107107
f,
108-
"StateMachineLock-Read-Guard({}): {}",
109-
self.purpose, self.inner
108+
"StateMachineLock-Read-Guard: {} {}",
109+
self.inner, self.purpose
110110
)
111111
}
112112
}
@@ -115,8 +115,8 @@ impl<T: ?Sized> Drop for ReadGuard<'_, T> {
115115
fn drop(&mut self) {
116116
let elapsed = self.acquired.elapsed();
117117
info!(
118-
"StateMachineLock-Read-Guard({}) released after {:?}",
119-
self.purpose, elapsed
118+
"StateMachineLock-Read-Release: total: {:?}; {}",
119+
elapsed, self.purpose,
120120
);
121121
}
122122
}

src/meta/service/src/store/store_inner.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl RaftStoreInner {
190190
.read()
191191
.with_timing(|_output, total, busy| {
192192
info!(
193-
"StateMachineLock-Read-Acquire-Elapsed: total: {:?}, busy: {:?}; {}",
193+
"StateMachineLock-Read-Acquire: total: {:?}, busy: {:?}; {}",
194194
total, busy, &for_what
195195
);
196196
})
@@ -210,7 +210,7 @@ impl RaftStoreInner {
210210
.write()
211211
.with_timing(|_output, total, busy| {
212212
info!(
213-
"StateMachineLock-Write-Acquire-Elapsed: total: {:?}, busy: {:?}; {}",
213+
"StateMachineLock-Write-Acquire: total: {:?}, busy: {:?}; {}",
214214
total, busy, &for_what
215215
);
216216
})

0 commit comments

Comments
 (0)