From: Matan Breizman Date: Sun, 28 May 2023 10:31:37 +0000 (+0000) Subject: crimson/osd/osdmap_gate: got_map() assert increase of current epoch X-Git-Tag: v19.0.0~986^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=06bf66154386662cd7bcccbef6cd7a2bdeb6e539;p=ceph.git crimson/osd/osdmap_gate: got_map() assert increase of current epoch Signed-off-by: Matan Breizman --- diff --git a/src/crimson/osd/osdmap_gate.cc b/src/crimson/osd/osdmap_gate.cc index b1fb669242cd..171ec436d0e2 100644 --- a/src/crimson/osd/osdmap_gate.cc +++ b/src/crimson/osd/osdmap_gate.cc @@ -54,6 +54,10 @@ seastar::future OSDMapGate::wait_for_map( template void OSDMapGate::got_map(epoch_t epoch) { + if (epoch == 0) { + return; + } + ceph_assert(epoch > current); current = epoch; auto first = waiting_peering.begin(); auto last = waiting_peering.upper_bound(epoch);