Skip to content

Commit 9976a6f

Browse files
authored
fix: avoid break when drop wal table failed (#806)
* avoid break when drop wal failed * polish * fmt
1 parent db8ad4b commit 9976a6f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wal/src/table_kv_impl/namespace.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,9 @@ fn purge_buckets<T: TableKv>(
14411441
for bucket in &buckets {
14421442
// Delete all tables of this bucket.
14431443
for table_name in &bucket.wal_shard_names {
1444-
table_kv.drop_table(table_name).map_err(Box::new)?;
1444+
let _ = table_kv.drop_table(table_name).map_err(|e| {
1445+
error!("Purge buckets drop table failed, table:{table_name}, err:{e}");
1446+
});
14451447
}
14461448

14471449
// All tables of this bucket have been dropped, we can remove the bucket record

0 commit comments

Comments
 (0)