Bug #6286
rgw: use of std::list::size() in ObjectCache
0%
Description
We shouldn't call list::size() it's O(n).
Associated revisions
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>
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)
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)
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)
History
#1 Updated by Yehuda Sadeh over 10 years ago
- Status changed from New to Pending Backport
- Priority changed from Normal to High
- Backport set to bobtail, cuttlefish, dumpling
#2 Updated by Yehuda Sadeh over 10 years ago
- Status changed from Pending Backport to Resolved
Pushed into bobtail, cuttlefish, and dumpling.