Add more log for debug. (#53)

This commit is contained in:
peilun-conflux 2024-04-15 11:16:56 +08:00 committed by GitHub
parent 6b9ee41457
commit 052e10cf8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,11 +395,11 @@ impl FlowDBStore {
for r in self.kvdb.iter(COL_ENTRY_BATCH_ROOT) {
let (index_bytes, root_bytes) = r?;
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());
debug!(
"load root depth={}, index expected={} get={} root={:?}",
subtree_depth, expected_index, batch_index, root,
);
if subtree_depth == 1 {
if range_root.is_none() {
// This is expected to be the next leaf.