]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: activate_map() in handle_osd_map only when active
authorSamuel Just <sam.just@inktank.com>
Thu, 17 May 2012 21:58:36 +0000 (14:58 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 5 Jul 2012 17:15:00 +0000 (10:15 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/OSD.cc

index f47e9b8461cb4069c0f9e98a7a02bd22e043454f..a45b70076bbc81633f2ba122cb61d120f5948a85 100644 (file)
@@ -3488,7 +3488,8 @@ void OSD::handle_osd_map(MOSDMap *m)
   map_lock.put_write();
 
   // yay!
-  activate_map();
+  if (is_active())
+    activate_map();
 
   if (m->newest_map && m->newest_map > last) {
     dout(10) << " msg say newest map is " << m->newest_map << ", requesting more" << dendl;