]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: list_prefixed_objs() callback: don't take substring
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 3 Jul 2019 15:58:42 +0000 (08:58 -0700)
committerCasey Bodley <cbodley@redhat.com>
Mon, 29 Jul 2019 19:20:50 +0000 (15:20 -0400)
We already get the substring as input, don't do it again.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/services/svc_sys_obj.h

index 9e8c51bc772f415da47d2677995fc201208ccd17..62ed3d5c8de333ab0039a415e316552e7baf42ee 100644 (file)
@@ -241,7 +241,7 @@ public:
     int list_prefixed_objs(const string& prefix,
                            Container *result) {
       return list_prefixed_objs(prefix, [&](const string& val) {
-        result->push_back(val.substr(prefix.size()));
+        result->push_back(val);
       });
     }