In cases where there is a single element in a batch_op_map,new_batch_head
is a nullptr, when this is retried at Finisher we'd hit one of the asserts when
dereferencing
Fixes: https://tracker.ceph.com/issues/70769
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@cern.ch>
(cherry picked from commit
e63f8cc54d03dbdd147cdd2c301adef119a640da)
auto new_batch_head = it->second->find_new_head();
if (!new_batch_head) {
mdr->batch_op_map->erase(it);
+ } else {
+ mds->finisher->queue(new C_MDS_RetryRequest(this, new_batch_head));
}
- mds->finisher->queue(new C_MDS_RetryRequest(this, new_batch_head));
}
if (mdr->has_more()) {