mirror of
https://github.com/ceph/ceph
synced 2025-03-31 07:53:23 +00:00
Merge pull request #14125 from zhangsw/fix-rgw-cache-normalname-bug
rgw: add pool namespace to cache's key so that system obj can have unique key Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
484e1a38f7
@ -182,8 +182,8 @@ class RGWCache : public T
|
||||
|
||||
string normal_name(rgw_pool& pool, const std::string& oid) {
|
||||
std::string buf;
|
||||
buf.reserve(pool.name.size() + oid.size() + 2);
|
||||
buf.append(pool.name).append("+").append(oid);
|
||||
buf.reserve(pool.name.size() + pool.ns.size() + oid.size() + 2);
|
||||
buf.append(pool.name).append("+").append(pool.ns).append("+").append(oid);
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user