Skip to content

Commit c39df85

Browse files
committed
polish
1 parent 5a33edb commit c39df85

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

wal/src/table_kv_impl/namespace.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -1441,13 +1441,11 @@ 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-
let drop_result = table_kv.drop_table(table_name);
1445-
if drop_result.is_err() {
1444+
let _ = table_kv.drop_table(table_name).map_err(|e| {
14461445
error!(
1447-
"Purge buckets drop table failed, table:{table_name}, err:{:?}",
1448-
drop_result.err()
1446+
"Purge buckets drop table failed, table:{table_name}, err:{e}",
14491447
);
1450-
}
1448+
});
14511449
}
14521450

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

0 commit comments

Comments
 (0)