]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: avoid using null pointer in rgw_file.cc
authorlihongjie <lihongjie@cmss.chinamobile.com>
Wed, 12 Apr 2017 09:18:01 +0000 (17:18 +0800)
committerlihongjie <lihongjie@cmss.chinamobile.com>
Wed, 12 Apr 2017 09:18:01 +0000 (17:18 +0800)
When rgw_fh doesn't exist, we should not use rgw_fh->full_object_name().

Signed-off-by: lihongjie <lihongjie@cmss.chinamobile.com>
src/rgw/rgw_file.cc

index eb24db6d95a6ff686653209ebe51629aeac09327..73bfd37bdcb34d1ad7dd0fd84976f434bcbbd8af 100644 (file)
@@ -339,7 +339,7 @@ namespace rgw {
     if (! rgw_fh) {
       ldout(get_context(), 0) << __func__
                       << " BUG no such src renaming path="
-                      << rgw_fh->full_object_name()
+                      << src_name
                       << dendl;
       goto out;
     }