This will allow the the image to be restored and re-mirrored if
desired.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
73d4577d1b9a9bff087b555c9de5005d1120a0ea)
Conflicts:
src/test/rbd_mirror/image_deleter/test_mock_TrashMoveRequest.cc: trivial resolution
const std::string &mirror_uuid,
ContextWQ *op_work_queue, Context *on_finish) {
assert(s_instance != nullptr);
+ EXPECT_EQ(librbd::Journal<>::LOCAL_MIRROR_UUID, mirror_uuid);
s_instance->on_finish = on_finish;
return s_instance;
}
TrashMoveRequest<I>, &TrashMoveRequest<I>::handle_reset_journal>(this);
auto req = librbd::journal::ResetRequest<I>::create(
m_io_ctx, m_image_id, librbd::Journal<>::IMAGE_CLIENT_ID,
- m_mirror_uuid, m_op_work_queue, ctx);
+ librbd::Journal<>::LOCAL_MIRROR_UUID, m_op_work_queue, ctx);
req->send();
}