Signed-off-by: sevev <qiangzh95@gmail.com> Co-authored-by: zhangqiang <qiangzh95@gmail.com>
This commit is contained in:
parent
1be1dd2368
commit
d507a534db
|
|
@ -445,6 +445,7 @@ Status TabletManager::drop_tablet(TTabletId tablet_id, TabletDropFlag flag) {
|
||||||
// to 'RUNNING' from 'SHUTDOWN'.
|
// to 'RUNNING' from 'SHUTDOWN'.
|
||||||
std::unique_lock l(dropped_tablet->get_header_lock());
|
std::unique_lock l(dropped_tablet->get_header_lock());
|
||||||
(void)dropped_tablet->set_tablet_state(TABLET_SHUTDOWN);
|
(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.
|
// Remove the tablet directory in background to avoid holding the lock of tablet map shard for long.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue