From f9c1f6939b25a05dcd9236e2a0f15ad9e157f4f2 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 3 Jul 2019 08:58:42 -0700 Subject: [PATCH] rgw: list_prefixed_objs() callback: don't take substring We already get the substring as input, don't do it again. Signed-off-by: Yehuda Sadeh --- src/rgw/services/svc_sys_obj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/services/svc_sys_obj.h b/src/rgw/services/svc_sys_obj.h index 9e8c51bc772..62ed3d5c8de 100644 --- a/src/rgw/services/svc_sys_obj.h +++ b/src/rgw/services/svc_sys_obj.h @@ -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); }); } -- 2.39.5