]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crimson/osd/osdmap_gate.cc
update ceph source to reef 18.2.1
[ceph.git] / ceph / src / crimson / osd / osdmap_gate.cc
index b1fb669242cde65ef728b0b0bab11dacaf88dbb6..171ec436d0e22ea764f6ade0884ea4feca618051 100644 (file)
@@ -54,6 +54,10 @@ seastar::future<epoch_t> OSDMapGate<OSDMapGateTypeV>::wait_for_map(
 
 template <OSDMapGateType OSDMapGateTypeV>
 void OSDMapGate<OSDMapGateTypeV>::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);