If the collection is subsequently removed, the _split_collection
might get replayed and find either src or dest removed.
Fixes: #4806
Backport: bobtail
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
int r;
{
dout(15) << __func__ << " " << cid << " bits: " << bits << dendl;
+ if (!collection_exists(cid)) {
+ dout(2) << __func__ << ": " << cid << " DNE" << dendl;
+ assert(replaying);
+ return 0;
+ }
+ if (!collection_exists(dest)) {
+ dout(2) << __func__ << ": " << dest << " DNE" << dendl;
+ assert(replaying);
+ return 0;
+ }
+
int dstcmp = _check_replay_guard(dest, spos);
if (dstcmp < 0)
return 0;