Skip to content

fix(duplication): fix duplication core because of removing or pausing #2243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/replica/duplication/replica_duplicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void replica_duplicator::pause_dup_log()
LOG_INFO_PREFIX("pausing duplication: {}", to_string());

pause();
cancel_all();
wait_all();

_load.reset();
_ship.reset();
Expand Down Expand Up @@ -264,7 +264,7 @@ void replica_duplicator::update_status_if_needed(duplication_status::type next_s
replica_duplicator::~replica_duplicator()
{
pause();
cancel_all();
wait_all();
LOG_INFO_PREFIX("closing duplication {}", to_string());
}

Expand Down
Loading