[BugFix] Fix shutdown tablet can not gc (#63595)

Signed-off-by: sevev <qiangzh95@gmail.com>
This commit is contained in:
zhangqiang 2025-09-26 16:50:36 +08:00 committed by GitHub
parent 50bb386d2c
commit ea9de53c3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -447,6 +447,7 @@ Status TabletManager::drop_tablet(TTabletId tablet_id, TabletDropFlag flag) {
// to 'RUNNING' from 'SHUTDOWN'.
std::unique_lock l(dropped_tablet->get_header_lock());
(void)dropped_tablet->set_tablet_state(TABLET_SHUTDOWN);
dropped_tablet->save_meta();
}
// Remove the tablet directory in background to avoid holding the lock of tablet map shard for long.