rgw: avoid using null pointer in rgw_file.cc

When rgw_fh doesn't exist, we should not use rgw_fh->full_object_name().

Signed-off-by: lihongjie <lihongjie@cmss.chinamobile.com>
This commit is contained in:
lihongjie 2017-04-12 17:18:01 +08:00
parent b43c180189
commit 4be4054d8f

View 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;
}