mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
rgw: metadata list user, only show uids
don't show unrelated object names Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
272635f3a5
commit
0cccd7c6c3
@ -2294,8 +2294,24 @@ public:
|
||||
|
||||
RGWRados *store = info->store;
|
||||
|
||||
return store->list_raw_objects(store->zone.user_uid_pool, no_filter,
|
||||
max, info->ctx, keys, truncated);
|
||||
list<string> unfiltered_keys;
|
||||
|
||||
int ret = store->list_raw_objects(store->zone.user_uid_pool, no_filter,
|
||||
max, info->ctx, unfiltered_keys, truncated);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
// now filter out the buckets entries
|
||||
list<string>::iterator iter;
|
||||
for (iter = unfiltered_keys.begin(); iter != unfiltered_keys.end(); ++iter) {
|
||||
string& k = *iter;
|
||||
|
||||
if (k.find(".buckets") == string::npos) {
|
||||
keys.push_back(k);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void list_keys_complete(void *handle) {
|
||||
|
Loading…
Reference in New Issue
Block a user