mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +00:00
Add more log for debug. (#53)
This commit is contained in:
parent
6b9ee41457
commit
052e10cf8b
@ -395,11 +395,11 @@ impl FlowDBStore {
|
|||||||
for r in self.kvdb.iter(COL_ENTRY_BATCH_ROOT) {
|
for r in self.kvdb.iter(COL_ENTRY_BATCH_ROOT) {
|
||||||
let (index_bytes, root_bytes) = r?;
|
let (index_bytes, root_bytes) = r?;
|
||||||
let (batch_index, subtree_depth) = decode_batch_root_key(index_bytes.as_ref())?;
|
let (batch_index, subtree_depth) = decode_batch_root_key(index_bytes.as_ref())?;
|
||||||
debug!(
|
|
||||||
"load root depth={}, index expected={} get={}",
|
|
||||||
subtree_depth, expected_index, batch_index
|
|
||||||
);
|
|
||||||
let root = DataRoot::from_slice(root_bytes.as_ref());
|
let root = DataRoot::from_slice(root_bytes.as_ref());
|
||||||
|
debug!(
|
||||||
|
"load root depth={}, index expected={} get={} root={:?}",
|
||||||
|
subtree_depth, expected_index, batch_index, root,
|
||||||
|
);
|
||||||
if subtree_depth == 1 {
|
if subtree_depth == 1 {
|
||||||
if range_root.is_none() {
|
if range_root.is_none() {
|
||||||
// This is expected to be the next leaf.
|
// This is expected to be the next leaf.
|
||||||
|
Loading…
Reference in New Issue
Block a user