]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/deep_copy: object-copy state machine must update object map
authorJason Dillaman <dillaman@redhat.com>
Fri, 29 Jan 2021 02:42:09 +0000 (21:42 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 11 Feb 2021 18:52:01 +0000 (13:52 -0500)
commit96a001c2379de09277ccc17fd70d24c6d573aa84
treeb6492e369b3aab26ab244baee45cda0f10529b2a
parent059dccdf93f53f15f69a675aab02fdd64a19cff8
librbd/deep_copy: object-copy state machine must update object map

If there was no data to copy, the object-copy state machine was bypassing
the object-map update states and prematurely completing. Since the
object-map is default-initialized to all non-existent objects, this results
in incorrect state for OBJECT_EXISTS_CLEAN objects.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ca0b9bfc28ef7287ca139ca9640c876223eda87b)
src/librbd/deep_copy/ObjectCopyRequest.cc
src/test/librbd/deep_copy/test_mock_ObjectCopyRequest.cc