From: zhaokun Date: Mon, 16 May 2016 01:30:48 +0000 (+0800) Subject: rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get X-Git-Tag: v11.0.0~354^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7e91c81702284f1eb68567fc5d9385ce22405e69;p=ceph.git rgw/rgw_common.cc: modify the end check in RGWHTTPArgs::sys_get Fixes: http://tracker.ceph.com/issues/16072 Signed-off-by: zhao kun --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index cd6d752279ea..969909a34857 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -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;