]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: quiet down warning message
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 26 Aug 2013 18:16:08 +0000 (11:16 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 2 Nov 2013 01:16:15 +0000 (18:16 -0700)
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>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 055e31359ac977943f014270cc56a1b7786abee3)

src/rgw/rgw_rados.cc

index eb6efa25235db980979fc1e330a8cb79ab1fb714..ed2554242d890843493fb609485f6064749a049b 100644 (file)
@@ -897,7 +897,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;