]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: stop recording removed_snaps in mon db
authorSage Weil <sage@redhat.com>
Mon, 23 Sep 2019 15:39:56 +0000 (10:39 -0500)
committerSage Weil <sage@redhat.com>
Mon, 23 Sep 2019 15:42:21 +0000 (10:42 -0500)
We keep a window of these in the OSDMap; we don't need to duplicate that
information in the mon kv store.  Nobody ever looks at it!

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 9b08b0bba7b43dfb470dc04c1acf92d4f1443901..a01eccf9fe256e1d0602d0917400d3692987d3b2 100644 (file)
@@ -1970,23 +1970,7 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t)
   pending_metadata.clear();
   pending_metadata_rm.clear();
 
-  // removed_snaps
-  for (auto& i : pending_inc.new_removed_snaps) {
-    {
-      // all snaps removed this epoch
-      string k = make_removed_snap_epoch_key(i.first, pending_inc.epoch);
-      bufferlist v;
-      encode(i.second, v);
-      t->put(OSD_SNAP_PREFIX, k, v);
-    }
-    for (auto q = i.second.begin();
-        q != i.second.end();
-        ++q) {
-      insert_snap_update(false, i.first, q.get_start(), q.get_end(),
-                        pending_inc.epoch,
-                        t);
-    }
-  }
+  // purged_snaps
   if (tmp.require_osd_release >= ceph_release_t::octopus &&
       !pending_inc.new_purged_snaps.empty()) {
     // all snaps purged this epoch (across all pools)