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:
Casey Bodley 2017-04-04 14:17:51 -04:00 committed by GitHub
commit 484e1a38f7

View File

@ -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;
}