Skip to content

Commit 20a1217

Browse files
authored
Included dropped_table_id into the error message in replay (#3481)
# Description of Changes Extra debug info for #3465. # API and ABI breaking changes None. # Expected complexity level and risk ### 1. # Testing - [x] Manual testing on a borked database.
1 parent 4234149 commit 20a1217

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/datastore/src/locking_tx_datastore/committed_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ impl CommittedState {
359359
let dropped_table_id = Self::read_table_id(row);
360360
self.tables
361361
.remove(&dropped_table_id)
362-
.expect("table to remove should exist");
362+
.unwrap_or_else(|| panic!("table {} to remove should exist", dropped_table_id));
363363
// Mark the table as dropped so that when
364364
// processing row deletions for that table later,
365365
// they are simply ignored in (1).

0 commit comments

Comments
 (0)