]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: omit always-false depth test.
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 6 Jan 2016 00:22:58 +0000 (19:22 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:24 +0000 (12:07 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index 1d3eb6106459c2374a4f6b6bd41d0edd1107273a..5b2874d6f4cf0a0185bd507f5a7701276a9bbb01 100644 (file)
@@ -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<const std::string*> segments;
       int reserve = 0;