]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
shared_cache: add lookup_or_create, get_next, etc. and their unittests
authorDong Yuan <yuandong1222@gmail.com>
Wed, 12 Nov 2014 04:08:29 +0000 (04:08 +0000)
committerDong Yuan <yuandong1222@gmail.com>
Thu, 18 Dec 2014 10:52:24 +0000 (10:52 +0000)
commitd61b1d926cf9d3a7c3f7e7ae79cf16c8d7979e5b
tree1c0e9f3979ecf8ceb49e376abc06cb24c6ebdd40
parentbe7b2f8a30b12841d260c4ce486a59ed28953a4f
shared_cache: add lookup_or_create, get_next, etc. and their unittests

These method has the same logic as SharePtrRegistry and will
be used for ReplicatedPG::object_contexts.

Signed-off-by: Dong Yuan <yuandong1222@gmail.com>
src/common/shared_cache.hpp
src/test/common/test_shared_cache.cc