]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: resolve_oid() looks in clone_snaps by requested snap ID
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Oct 2022 11:22:32 +0000 (11:22 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 13 Oct 2022 11:30:31 +0000 (11:30 +0000)
commit2d33a07afa4be0ad7177a2752f0790e6459ced46
tree34474ac35070efec7d17de57e24227bd04dd7e20
parent296ba0641a161e6f809a03f39d85faf9d695315b
crimson/osd: resolve_oid() looks in clone_snaps by requested snap ID

Before the patch the method was looking for `lower_bound(oid.snap)`
from `SnapSet::clones` which leads to reading from head instead of
returning the `ENOENT` expected in `TestLibRBD.TestIOToSnapshot`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/osd/pg.cc