From e9935f2c907ea777221b131378d2f6911ad4caf5 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 14 May 2013 12:43:54 -0700 Subject: ceph_json: fix bool decoding "false" means false. Signed-off-by: Yehuda Sadeh --- src/common/ceph_json.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/ceph_json.cc b/src/common/ceph_json.cc index 37b4ccdee7a..ad3d70846d2 100644 --- a/src/common/ceph_json.cc +++ b/src/common/ceph_json.cc @@ -414,7 +414,7 @@ void decode_json_obj(bool& val, JSONObj *obj) return; } if (strcasecmp(s.c_str(), "false") == 0) { - val = true; + val = false; return; } int i; -- cgit v1.2.1