We should verify that the snap we are looking for matches the
pool also.
Same as we are checking in OSDMonitor:
https://github.com/ceph/ceph/pull/28865/commits/
0a48392ce066471233cc1e81e957b2999b9c411c
Fixes: https://tracker.ceph.com/issues/64347
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
decode(gotpool, p);
decode(*begin, p);
decode(*end, p);
+ if (gotpool != pool) {
+ dout(20) << __func__ << " got wrong pool " << gotpool << dendl;
+ return -ENOENT;
+ }
if (snap < *begin || snap >= *end) {
dout(20) << __func__ << " pool " << pool << " snap " << snap
<< " found [" << *begin << "," << *end << "), no overlap" << dendl;