From 3dc29de56cb73eaa00556428cbeac88ff2a5d8cb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 4 Sep 2015 10:37:26 +0800 Subject: [PATCH] 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 --- src/mon/OSDMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 4021054734fee..06dd21808c1eb 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; -- 2.39.5