From: Matan Breizman Date: Sun, 15 Oct 2023 14:28:53 +0000 (+0000) Subject: mon/OSDMonitor: remove pending_pseudo_purged_snaps X-Git-Tag: v19.3.0~302^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f04d42380bb640cd38e4a3170ff51b3d5e0141f6;p=ceph.git mon/OSDMonitor: remove pending_pseudo_purged_snaps pending_pseudo_purged_snaps was introduced in order to avoid discontinuity in the purged_snap monitor entries. After this change there shouldn't be any discontinuity in the first place. Signed-off-by: Matan Breizman --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index ac6a3f4466c2..d7e67e49103f 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -1162,7 +1162,6 @@ void OSDMonitor::create_pending() pending_inc.fsid = mon.monmap->fsid; pending_metadata.clear(); pending_metadata_rm.clear(); - pending_pseudo_purged_snaps.clear(); dout(10) << "create_pending e " << pending_inc.epoch << dendl; @@ -2066,13 +2065,6 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t) t); } } - for (auto& [pool, snaps] : pending_pseudo_purged_snaps) { - for (auto snap : snaps) { - insert_purged_snap_update(pool, snap, snap + 1, - pending_inc.epoch, - t); - } - } // health health_check_map_t next; @@ -14303,10 +14295,6 @@ bool OSDMonitor::prepare_pool_op(MonOpRequestRef op) m->snapid, osdmap.require_osd_release < ceph_release_t::octopus); pending_inc.new_removed_snaps[m->pool].insert(m->snapid); - // also record the new seq as purged: this avoids a discontinuity - // after all of the snaps have been purged, since the seq assigned - // during removal lives in the same namespace as the actual snaps. - pending_pseudo_purged_snaps[m->pool].insert(pp.get_snap_seq()); changed = true; } break; diff --git a/src/mon/OSDMonitor.h b/src/mon/OSDMonitor.h index 3f6226c057a1..08aa4f61783b 100644 --- a/src/mon/OSDMonitor.h +++ b/src/mon/OSDMonitor.h @@ -217,7 +217,6 @@ public: std::map failure_info; std::map down_pending_out; // osd down -> out bool priority_convert = false; - std::map> pending_pseudo_purged_snaps; std::shared_ptr rocksdb_binned_kv_cache = nullptr; std::shared_ptr pcm = nullptr; ceph::mutex balancer_lock = ceph::make_mutex("OSDMonitor::balancer_lock");