]> git-server-git.apps.pok.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)
committerSage Weil <sage@inktank.com>
Tue, 1 Oct 2013 16:22:00 +0000 (09:22 -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>
src/rgw/rgw_rados.cc

index 1b97f28e2fa035dcd784db3989c229f5f82f576f..556aa1abba57baa58ce234787722af407894860e 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;