]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMOnitor: use provided get_version_full()
authorSage Weil <sage@inktank.com>
Tue, 18 Jun 2013 01:00:31 +0000 (18:00 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 04:07:25 +0000 (21:07 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc

index ed3c7867666f9b246545c87d3fa8138f6a3d92c3..900f0d6ac199f46db27b44ab6d2da404238132d0 100644 (file)
@@ -1503,7 +1503,7 @@ MOSDMap *OSDMonitor::build_incremental(epoch_t from, epoch_t to)
     } else {
       assert(err == -ENOENT);
       assert(!bl.length());
-      get_version("full", e, bl);
+      get_version_full(e, bl);
       if (bl.length() > 0) {
       //else if (get_version("full", e, bl) > 0) {
       dout(20) << "build_incremental   full " << e << " "
@@ -1551,7 +1551,7 @@ void OSDMonitor::send_incremental(PaxosServiceMessage *req, epoch_t first)
   if (first < get_first_committed()) {
     first = get_first_committed();
     bufferlist bl;
-    int err = get_version("full", first, bl);
+    int err = get_version_full(first, bl);
     assert(err == 0);
     assert(bl.length());
 
@@ -1589,7 +1589,7 @@ void OSDMonitor::send_incremental(epoch_t first, entity_inst_t& dest, bool oneti
   if (first < get_first_committed()) {
     first = get_first_committed();
     bufferlist bl;
-    int err = get_version("full", first, bl);
+    int err = get_version_full(first, bl);
     assert(err == 0);
     assert(bl.length());
 
@@ -1963,7 +1963,7 @@ bool OSDMonitor::preprocess_command(MMonCommand *m)
     OSDMap *p = &osdmap;
     if (epoch) {
       bufferlist b;
-      int err = get_version("full", epoch, b);
+      int err = get_version_full(epoch, b);
       if (err == -ENOENT) {
        r = -ENOENT;
        goto reply;