Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix: shutdown error while close replica (#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
hycdong authored Feb 11, 2022
1 parent 82aadea commit 8c310b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions include/dsn/dist/replication/replication_app_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ class replication_app_base : public replica_base
//
error_code open();

//
// Cancel all background flush and compaction work.
//
virtual void cancel_background_work(bool wait) {}

//
// Close the app.
// If `clear_state' is true, means clear the app state after close it.
Expand Down
4 changes: 0 additions & 4 deletions src/replica/replica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,6 @@ void replica::close()
_checkpoint_timer = nullptr;
}

if (_app != nullptr) {
_app->cancel_background_work(true);
}

_tracker.cancel_outstanding_tasks();

cleanup_preparing_mutations(true);
Expand Down

0 comments on commit 8c310b9

Please sign in to comment.