]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd/object_map: don't assert if a snapshot doesn't exist 38455/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 11 Dec 2020 01:11:34 +0000 (20:11 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 15 Dec 2020 19:21:37 +0000 (14:21 -0500)
commit301d212961f1731218f7099563aaec1e3f9bbdf7
tree177f3ec9470a4d3213b9222bbf6ff8a3c9eb6639
parent45f5874e65a9e2fe91e3144e8d44d07a70d39abd
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>
(cherry picked from commit abab5f143b80ff876948307f00ab767bc1b6ba22)

Conflicts:
src/test/librbd/object_map/test_mock_DiffRequest.cc: exec() mock only takes 7 params
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]