]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: log name instead of id for SystemMetaObj on failure
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 9 May 2016 09:41:19 +0000 (11:41 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Mon, 9 May 2016 09:41:19 +0000 (11:41 +0200)
Currently if we fail to read a SystemMetaObj we try to log the
MetaObject id, however this will not be set mostly as read_id has
failed, so we end up logging an empty id, changing this to log
the object name instead

Fixes: http://tracker.ceph.com/issues/15776
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_rados.cc

index 1d4a846db33f6b7c7e793f9886895ae101cbb7c5..ac003646a17bb5b0041da5500cf08e54f724b16f 100644 (file)
@@ -383,8 +383,8 @@ 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 id " << id << " : " << cpp_strerror(-r) << dendl;
-       return r;
+        ldout(cct, 0) << "error in read_id for object name: " << name << " : " << cpp_strerror(-r) << dendl;
+        return r;
       }
     }
   }