]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't call list::size() in ObjectCache
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 12 Sep 2013 05:30:12 +0000 (22:30 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 19 Sep 2013 19:13:09 +0000 (12:13 -0700)
commitbe2907ef85a31c2be8be7446fe71f5d2e1410ec0
treec3ad1646a26f996abf6b400b25f34ae76462e566
parentbbfbb097e2f9efbf4f7ec997c70befa20c79d27c
rgw: don't call list::size() in ObjectCache

Fixes: #6286
Use an external counter instead of calling list::size()

Reviewed-by: Sage Weil <sage@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 31e3a51e933429d286104fe077e98ea883437ad6)
src/rgw/rgw_cache.cc
src/rgw/rgw_cache.h