]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSDMonitor: make sure we don't send out maps with a primary_temp mapping 1086/head
authorGreg Farnum <greg@inktank.com>
Wed, 15 Jan 2014 22:51:35 +0000 (14:51 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 16 Jan 2014 00:33:07 +0000 (16:33 -0800)
Making sure a cluster supports primary_temp is complicated and we don't
have any of the machinery in place right now (nor a need to actually support
it). We don't have any mechanisms for setting it to begin with, so assert
that we never create anything with any such mapping in update_from_paxos()
to catch any errors.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/mon/OSDMonitor.cc

index 3f5af18024b555eaef213064cdde9e7868383518..50f999d59f99451eab0a0433bc07b739b997c478 100644 (file)
@@ -248,6 +248,10 @@ void OSDMonitor::update_from_paxos(bool *need_bootstrap)
     osd_epoch.erase(p++);
   }
 
+  /** we don't have any of the feature bit infrastructure in place for
+   * supporting primary_temp mappings without breaking old clients/OSDs.*/
+  assert(osdmap.primary_temp->empty());
+
   if (mon->is_leader()) {
     // kick pgmon, make sure it's seen the latest map
     mon->pgmon()->check_osd_map(osdmap.epoch);