This commit is contained in:
Pere Diaz Bou
2025-07-18 13:53:17 +02:00
parent 5a1773edf1
commit d77c899fa6
2 changed files with 3 additions and 5 deletions

View File

@@ -1221,7 +1221,7 @@ impl Statement {
.rollback(schema_did_change, &self.program.connection)
{
// Let's panic for now as we don't want to leave state in a bad state.
panic!("rollback failed: {:?}", e);
panic!("rollback failed: {e:?}");
}
let end_tx_res =
self.pager
@@ -1232,8 +1232,7 @@ impl Statement {
.set(TransactionState::None);
assert!(
matches!(end_tx_res, IOResult::Done(_)),
"end_tx should not return IO as it should just end txn without flushing anything. Got {:?}",
end_tx_res
"end_tx should not return IO as it should just end txn without flushing anything. Got {end_tx_res:?}"
);
}
}

View File

@@ -1016,8 +1016,7 @@ impl Pager {
let page_key = PageCacheKey::new(page_id);
let page = cache.get(&page_key).unwrap_or_else(|| {
panic!(
"we somehow added a page to dirty list but we didn't mark it as dirty, causing cache to drop it. page={}",
page_id
"we somehow added a page to dirty list but we didn't mark it as dirty, causing cache to drop it. page={page_id}"
)
});
let page_type = page.get().contents.as_ref().unwrap().maybe_page_type();