]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unnecessary output 15197/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Tue, 14 Jun 2016 07:34:08 +0000 (15:34 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 19 Jun 2017 19:12:51 +0000 (21:12 +0200)
a lot of radosgw-admin command will output
"error in read_id for object name: default : (2) No such file or directory"
when the zone named 'default' is not exist:

Signed-off-by: weiqiaomiao <wei.qiaomiao@zte.com.cn>
(cherry picked from commit 4e9c7be08b9828db2795536ce170a675d25bc1ed)

src/rgw/rgw_rados.cc

index fd3e54c017c72713abb5e77f5817df8c06230125..afa34369abc0806512b13ce8aa87fdf667d196fd 100644 (file)
@@ -385,7 +385,9 @@ int RGWSystemMetaObj::init(CephContext *_cct, RGWRados *_store, bool setup_obj,
     } else if (!old_format) {
       r = read_id(name, id);
       if (r < 0) {
-        ldout(cct, 0) << "error in read_id for object name: " << name << " : " << cpp_strerror(-r) << dendl;
+        if (r != -ENOENT) {
+          ldout(cct, 0) << "error in read_id for object name: " << name << " : " << cpp_strerror(-r) << dendl;
+        }
         return r;
       }
     }