From 4be4054d8ffd50f30adbafd2093b4b700d32ed06 Mon Sep 17 00:00:00 2001 From: lihongjie Date: Wed, 12 Apr 2017 17:18:01 +0800 Subject: [PATCH] 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 --- src/rgw/rgw_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index eb24db6d95a..73bfd37bdcb 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -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; } -- 2.39.5