Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: sevev <[email protected]>
  • Loading branch information
sevev committed Sep 20, 2024
1 parent 9e614da commit c910ff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions be/src/storage/base_tablet.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ class BaseTablet : public std::enable_shared_from_this<BaseTablet> {

virtual size_t num_rows() const = 0;

protected:
virtual void on_shutdown() {}


protected:
void _gen_tablet_path();

TabletState _state;
Expand Down
3 changes: 1 addition & 2 deletions be/src/storage/tablet.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ class Tablet : public BaseTablet {
[[nodiscard]] bool is_dropping() const { return _is_dropping; }
// set true when start to drop tablet. only set in `TabletManager::drop_tablet` right now
void set_is_dropping(bool is_dropping) { _is_dropping = is_dropping; }

protected:

void on_shutdown() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion be/src/storage/tablet_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Status TabletManager::drop_tablet(TTabletId tablet_id, TabletDropFlag flag) {
// 1. drop and clone a new tablet with the same tablet_id.
// 2. compact rocksdb meta and reload tablet again.
std::unique_lock l(dropped_tablet->get_header_lock());
dropped_tablet->on_shutdown();
dropped_tablet->updates()->on_shutdown();
}
}
// erase tablet from tablet map
Expand Down

0 comments on commit c910ff1

Please sign in to comment.