From: Matt Benjamin Date: Wed, 6 Jan 2016 00:22:58 +0000 (-0500) Subject: librgw: omit always-false depth test. X-Git-Tag: v10.1.0~382^2~68 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80d5201ae2799fb8be6e6429660cd052a738f453;p=ceph.git librgw: omit always-false depth test. Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 1d3eb610645..5b2874d6f4c 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -321,9 +321,6 @@ namespace rgw { const std::string& object_name() const { return name; } std::string full_object_name(bool omit_bucket = false) { - if (depth <= 1) { - return ""; - } std::string path; std::vector segments; int reserve = 0;