This will fix the following failing tests with asok issues:
rbd_mirror_group_simple.sh:
+ testlog 'TEST:test_multiple_user_snapshot_time scenario:1 parameters:'
rbd_mirror_group_group.sh:
+ testlog "TEST: add a large image to group and test replay"
Also this fix replace the set_finished(), which was removed in the previous
commit, which will cause a regression in the GroupReplayer destroy code path.
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
m_state = STATE_STOPPED;
}
+ if (r == -ENOENT) { // group removed
+ if (!m_resync_requested) {
+ set_finished(true);
+ }
+ unregister_admin_socket_hook();
+ }
+
if (on_start != nullptr) {
dout(10) << "on start finish complete, r=" << r << dendl;
on_start->complete(r);
cls::rbd::MirrorGroupStatusState state, const std::string &desc) {
dout(20) << "state=" << state << ", description=" << desc << dendl;
+ reregister_admin_socket_hook();
+
cls::rbd::MirrorGroupSiteStatus local_status;
local_status.state = state;
local_status.description = desc;