Skip to content

Commit

Permalink
rbd-mirror: update mirror status when stopping
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/36659
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
Jason Dillaman committed Oct 31, 2018
1 parent 5cbca65 commit c00f661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/rbd_mirror/ImageReplayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ void ImageReplayer<I>::on_stop_journal_replay(int r, const std::string &desc)
}

set_state_description(r, desc);
update_mirror_image_status(false, boost::none);
update_mirror_image_status(true, boost::none);
reschedule_update_status_task(-1);
shut_down(0);
}
Expand Down Expand Up @@ -1398,7 +1398,7 @@ void ImageReplayer<I>::send_mirror_status_update(const OptionalState &opt_state)
case STATE_STOPPING:
if (stopping_replay) {
status.state = cls::rbd::MIRROR_IMAGE_STATUS_STATE_STOPPING_REPLAY;
status.description = "stopping replay";
status.description = state_desc.empty() ? "stopping replay" : state_desc;
break;
}
// FALLTHROUGH
Expand Down

0 comments on commit c00f661

Please sign in to comment.