]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix the build with boost 1.59 5804/head
authorKefu Chai <kchai@redhat.com>
Fri, 4 Sep 2015 02:37:26 +0000 (10:37 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 Sep 2015 03:36:25 +0000 (11:36 +0800)
cmd_vartype is a
boost::variant<std::string, bool, int64_t, double,
               std::vector<std::string>>, so we can not get a
int8_t from it.

Fixes: #12922
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index 4021054734fee3b81b0f158f96154848510d7a4d..06dd21808c1eb17a37dbe50d3d863dbac53a41de 100644 (file)
@@ -6599,8 +6599,8 @@ done:
       goto reply;
     }
 
-    int8_t fast_read_param;
-    cmd_getval(g_ceph_context, cmdmap, "fast_read", fast_read_param, int8_t(-1));
+    int64_t fast_read_param;
+    cmd_getval(g_ceph_context, cmdmap, "fast_read", fast_read_param, int64_t(-1));
     FastReadType fast_read = FAST_READ_DEFAULT;
     if (fast_read_param == 0)
       fast_read = FAST_READ_OFF;