From: Kefu Chai Date: Fri, 4 Sep 2015 02:37:26 +0000 (+0800) Subject: mon: fix the build with boost 1.59 X-Git-Tag: v9.1.0~222^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5804%2Fhead;p=ceph.git mon: fix the build with boost 1.59 cmd_vartype is a boost::variant>, so we can not get a int8_t from it. Fixes: #12922 Signed-off-by: Kefu Chai --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 4021054734fe..06dd21808c1e 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -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;