From 06bf66154386662cd7bcccbef6cd7a2bdeb6e539 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Sun, 28 May 2023 10:31:37 +0000 Subject: [PATCH] crimson/osd/osdmap_gate: got_map() assert increase of current epoch Signed-off-by: Matan Breizman --- src/crimson/osd/osdmap_gate.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crimson/osd/osdmap_gate.cc b/src/crimson/osd/osdmap_gate.cc index b1fb669242c..171ec436d0e 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); -- 2.39.5