summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-08-26 11:16:08 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-08-26 11:16:08 -0700
commite24262de88380aab25c6b4c21768c0d209e5168c (patch)
treec57847183bf205635c849d808d4aedf6fd890149
parent4b529c8bceea98aaf69dceec3a4d1a239036d5d7 (diff)
downloadceph-wip-6123.tar.gz
rgw: quiet down warning messagewip-6123
Fixes: #6123 We don't want to know about failing to read region map info if it's not found, only if failed on some other error. In any case it's just a warning. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_rados.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc
index 03cc1ebfdb3..bffa2d32885 100644
--- a/src/rgw/rgw_rados.cc
+++ b/src/rgw/rgw_rados.cc
@@ -893,7 +893,9 @@ int RGWRados::init_complete()
ret = region_map.read(cct, this);
if (ret < 0) {
- ldout(cct, 0) << "WARNING: cannot read region map" << dendl;
+ if (ret != -ENOENT) {
+ ldout(cct, 0) << "WARNING: cannot read region map" << dendl;
+ }
ret = region_map.update(region);
if (ret < 0) {
ldout(cct, 0) << "ERROR: failed to update regionmap with local region info" << dendl;