]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get 9392/head
authorzhaokun <jswps2011@163.com>
Mon, 16 May 2016 01:30:48 +0000 (09:30 +0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 30 May 2016 11:21:04 +0000 (04:21 -0700)
Fixes: http://tracker.ceph.com/issues/16072
Signed-off-by: zhao kun <jswps2011@163.com>
src/rgw/rgw_common.cc

index cd6d752279eaf60c3ecf991efc3aa4c4be1ce8d6..969909a3485776082a69e5f9ebe94bafd4c9399d 100644 (file)
@@ -839,7 +839,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;