If mirroring is force disabled on a demoted image, the journal was
being left in an inconsistent ownership state.
This is a direct commit to jewel as the fix in the master was
against the newly added async version of mirror disable, which is
not going to be merged to jewel.
Fixes: http://tracker.ceph.com/issues/17767
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
<< dendl;
}
+ if (!is_primary) {
+ r = Journal<>::promote(ictx);
+ if (r < 0) {
+ lderr(cct) << "failed to promote image: " << cpp_strerror(r) << dendl;
+ }
+ }
+
header_oid = ::journal::Journaler::header_oid(ictx->id);
while(true) {