put_last_committed(t, pending_inc.epoch);
}
-void OSDMonitor::encode_full(MonitorDBStore::Transaction *t)
-{
- dout(10) << __func__ << " osdmap e " << osdmap.epoch << dendl;
- assert(get_last_committed() == osdmap.epoch);
-
- bufferlist osdmap_bl;
- osdmap.encode(osdmap_bl);
- put_version_full(t, osdmap.epoch, osdmap_bl);
- put_version_latest_full(t, osdmap.epoch);
-}
-
void OSDMonitor::share_map_with_random_osd()
{
if (osdmap.get_num_up_osds() == 0) {
void update_from_paxos(bool *need_bootstrap);
void create_pending(); // prepare a new pending
void encode_pending(MonitorDBStore::Transaction *t);
- virtual void encode_full(MonitorDBStore::Transaction *t);
void on_active();
void on_shutdown();
+ /**
+ * we haven't delegated full version stashing to paxosservice for some time
+ * now, making this function useless in current context.
+ */
+ virtual void encode_full(MonitorDBStore::Transaction *t) { }
/**
* do not let paxosservice periodically stash full osdmaps, or we will break our
* locally-managed full maps. (update_from_paxos loads the latest and writes them