]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get 9136/head
authorzhaokun <jswps2011@163.com>
Mon, 16 May 2016 01:30:48 +0000 (09:30 +0800)
committerzhaokun <jswps2011@163.com>
Mon, 16 May 2016 01:30:48 +0000 (09:30 +0800)
Signed-off-by: zhao kun <jswps2011@163.com>
src/rgw/rgw_common.cc

index d597339a7e70f702720241354889b072551b59ca..d4de8c8dceb3074f21aa37f70cc6a248a0870b30 100644 (file)
@@ -850,7 +850,7 @@ void RGWHTTPArgs::get_bool(const char *name, bool *val, bool def_val)
 string RGWHTTPArgs::sys_get(const string& name, bool * const exists)
 {
   const auto iter = sys_val_map.find(name);
-  const bool e = (iter != val_map.end());
+  const bool e = (iter != sys_val_map.end());
 
   if (exists) {
     *exists = e;