]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: copy snap map into deep copy object copy request
authorMykola Golub <mgolub@suse.com>
Fri, 31 Aug 2018 11:26:10 +0000 (14:26 +0300)
committerMykola Golub <mgolub@suse.com>
Fri, 31 Aug 2018 11:26:10 +0000 (14:26 +0300)
We must not use a reference to in-memory migration info as it might be
updated in background by refresh.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/librbd/deep_copy/ObjectCopyRequest.h

index 4f53826117b76435658b21eed119995e5450029d..090f42ffc00cc9ef1192d11d6af34cc72f85024f 100644 (file)
@@ -133,7 +133,7 @@ private:
   ImageCtxT *m_src_image_ctx;
   ImageCtxT *m_dst_image_ctx;
   CephContext *m_cct;
-  const SnapMap &m_snap_map;
+  SnapMap m_snap_map;
   uint64_t m_dst_object_number;
   bool m_flatten;
   Context *m_on_finish;