From: Mykola Golub Date: Fri, 31 Aug 2018 11:26:10 +0000 (+0300) Subject: librbd: copy snap map into deep copy object copy request X-Git-Tag: v14.0.1~363^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=827cced6091d33ab2dc8e70c593b966ed64e8e75;p=ceph.git librbd: copy snap map into deep copy object copy request 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 --- diff --git a/src/librbd/deep_copy/ObjectCopyRequest.h b/src/librbd/deep_copy/ObjectCopyRequest.h index 4f53826117b76..090f42ffc00cc 100644 --- a/src/librbd/deep_copy/ObjectCopyRequest.h +++ b/src/librbd/deep_copy/ObjectCopyRequest.h @@ -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;