more release lifetime cleanup and base class contextmanager stuff

This commit is contained in:
John Smith
2023-06-18 20:57:51 -04:00
parent 1f777a73b5
commit 2314fcb57e
6 changed files with 133 additions and 53 deletions

View File

@@ -428,7 +428,7 @@ impl TableStore {
}
pub(crate) fn on_table_db_drop(&self, table: String) {
log_rtab!(debug "dropping table db: {}", table);
log_rtab!("dropping table db: {}", table);
let mut inner = self.inner.lock();
if inner.opened.remove(&table).is_none() {
unreachable!("should have removed an item");