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

Signed-off-by: sevev <qiangzh95@gmail.com>
Co-authored-by: zhangqiang <qiangzh95@gmail.com>
This commit is contained in:
mergify[bot] 2025-09-26 10:18:52 +00:00 committed by GitHub
parent 1be1dd2368
commit d507a534db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -445,6 +445,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.