]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
objecter: call renew_subs when appropriate
authorSage Weil <sage@newdream.net>
Mon, 19 Oct 2009 18:36:58 +0000 (11:36 -0700)
committerSage Weil <sage@newdream.net>
Mon, 19 Oct 2009 18:36:58 +0000 (11:36 -0700)
Otherwise our sub_want call doesn't nothing until the
next subscription renewal goes out

src/osdc/Objecter.cc

index 3550016759998f923b6f71a071745a932aab68db..70d390339ed9cc77aa55fc3cf2319b1ea25f69f8 100644 (file)
@@ -141,6 +141,7 @@ void Objecter::handle_osd_map(MOSDMap *m)
        else {
          dout(3) << "handle_osd_map requesting missing epoch " << osdmap->get_epoch()+1 << dendl;
          monc->sub_want_onetime("osdmap", osdmap->get_epoch());
+         monc->renew_subs();
          break;
        }
        
@@ -173,6 +174,7 @@ void Objecter::handle_osd_map(MOSDMap *m)
       } else {
        dout(3) << "handle_osd_map hmm, i want a full map, requesting" << dendl;
        monc->sub_want_onetime("osdmap", 0);
+       monc->renew_subs();
       }
     }