Skip to content

Commit 7af04b7

Browse files
committed
a bit more debugging around dictionary creation
1 parent 6d2be1b commit 7af04b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

services/pddb/src/backend/basis.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,13 @@ impl BasisCache {
305305
// allocate a vpage offset for the dictionary
306306
let dict_index = basis.dict_get_free_offset(hw);
307307
let dict_offset = VirtAddr::new(dict_index as u64 * DICT_VSIZE).unwrap();
308+
log::debug!("dict_add at VA 0x{:x?}", dict_offset);
308309
let pp = basis.v2p_map.entry(dict_offset).or_insert_with(|| {
309310
let mut ap = hw.try_fast_space_alloc().expect("No free space to allocate dict");
310311
ap.set_valid(true);
311312
ap
312313
});
314+
log::debug!("dict_add at PA 0x {:x?}", pp);
313315
assert!(pp.valid(), "v2p returned an invalid page");
314316

315317
// create the cache entry

0 commit comments

Comments
 (0)