Skip to content

Commit

Permalink
Improve debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
cberner committed Dec 26, 2024
1 parent 2371af4 commit efb761c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,26 @@ impl WriteTransaction {
println!("{p:?}");
}
}
{
let pages = self.freed_pages.lock().unwrap();
if !pages.is_empty() {
println!("Pages in in-memory freed_pages");
for p in pages.iter() {
println!("{p:?}");
all_allocated.remove(p);
}
}
}
{
let pages = self.post_commit_frees.lock().unwrap();
if !pages.is_empty() {
println!("Pages in in-memory post_commit_frees");
for p in pages.iter() {
println!("{p:?}");
all_allocated.remove(p);
}
}
}
if !all_allocated.is_empty() {
println!("Leaked pages");
for p in all_allocated {
Expand Down

0 comments on commit efb761c

Please sign in to comment.