]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/shared_cache: allow comparator to be adjusted
authorSage Weil <sage@redhat.com>
Tue, 4 Aug 2015 15:31:37 +0000 (11:31 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Aug 2015 14:17:34 +0000 (10:17 -0400)
commita78cef4f3cb4b60184f3877b73e78d186f82c52a
treedb9d370834b3a5cfb1b40e5eb5f7b2babb93457c
parent526b63fc092d569da6ddf2de1d6e1e2e2a5aa706
common/shared_cache: allow comparator to be adjusted

Allow the use of a comparator that has a value, and for that
comparator to be adjusted at runtime for the purposes for get_next
sort order.  Since get_next uses the weak_refs map, that is the
only map that needs to be rebuilt.

We assume, for simplicity, that the comparator can be constructed
with no arguments with some default... otherwise this is messier.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/shared_cache.hpp