Otherwise there is some unwanted error message.
Fixes: http://tracker.ceph.com/issues/15863
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
}
}
+ C_SaferCond cond;
+ ictx->journal->close(&cond);
+ r = cond.wait();
+ if (r < 0) {
+ lderr(cct) << "error closing image journal: " << cpp_strerror(r)
+ << dendl;
+ return r;
+ }
+
r = Journal<>::remove(ictx->md_ctx, ictx->id);
if (r < 0) {
lderr(cct) << "error removing image journal: " << cpp_strerror(r)