]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: do not invalidate object map when attempting to delete non-existent snapshot 24105/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 14 Sep 2018 15:46:13 +0000 (11:46 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 16 Sep 2018 16:46:25 +0000 (12:46 -0400)
commit0a31c55ea83d85da88c7586c9a8fa8d6ec6618a7
tree5a973aced1a46bce7ba7a7b44aa32fdf80984212
parent58770188ab57a53b786cf616ccfbf6acfcdc115a
librbd: do not invalidate object map when attempting to delete non-existent snapshot

If duplicate snapshot remove requests are received by the lock owner from a peer
client, the first request will remove the object map. If the second request
arrives while the first is in-progress, it will again attempt to remove the
object map but fail to load it since it's already been deleted. This incorrectly
results in the next object map being flagged as invalid.

Fixes: http://tracker.ceph.com/issues/24516
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/object_map/SnapshotRemoveRequest.cc
src/librbd/object_map/SnapshotRemoveRequest.h
src/test/librbd/object_map/test_mock_SnapshotRemoveRequest.cc