]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd/object_map: don't assert if a snapshot doesn't exist 38539/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 01:11:34 +0000 (20:11 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 18:16:06 +0000 (13:16 -0500)
commitabab5f143b80ff876948307f00ab767bc1b6ba22
treede67389c5d1a41e73a0ef0b38193a8716e4cafe6
parentb32c6f1d1a4870d860a445f6eedcdd18583297d9
librbd/object_map: don't assert if a snapshot doesn't exist

When compute a fast-diff, if an snapshot no longer exists or fails
to load, ignore the error as long as it wasn't the start or end
snapshot.

Fixes: https://tracker.ceph.com/issues/48526
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/object_map/DiffRequest.cc
src/librbd/object_map/DiffRequest.h
src/test/librbd/CMakeLists.txt
src/test/librbd/object_map/test_mock_DiffRequest.cc [new file with mode: 0644]