#include "common/ceph_context.h"
#include "common/dout.h"
+#include "common/errno.h"
#include "common/Mutex.h"
#include "librbd/AioCompletion.h"
std::vector<librados::snap_t> snaps;
snaps.insert(snaps.end(), snapc.snaps.begin(), snapc.snaps.end());
+ r = m_ictx->update_object_map(m_object_no, OBJECT_EXISTS);
+ if (r < 0) {
+ lderr(m_ictx->cct) << __func__ << " " << this
+ << ": failed to update object map:"
+ << cpp_strerror(r) << dendl;
+ return;
+ }
+
librados::ObjectWriteOperation copyup_op;
copyup_op.exec("rbd", "copyup", m_copyup_data);