]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools: maintain cache size counter for immutable obj cache daemon
authorYuan Zhou <yuan.zhou@intel.com>
Fri, 22 Feb 2019 02:44:04 +0000 (10:44 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Thu, 21 Mar 2019 16:16:30 +0000 (00:16 +0800)
commit83752060b6f4caff53df06e322a4455cce2d3b97
tree54fff1686f6170c0975c0110e14a06d99fd1b1ad
parent46971e49806be7ba0750a0e81243fd54e4ed9444
tools: maintain cache size counter for immutable obj cache daemon

Do not assume 4M object size since we allow to cache any-sized objects.

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/test/immutable_object_cache/test_SimplePolicy.cc
src/tools/immutable_object_cache/ObjectCacheStore.cc
src/tools/immutable_object_cache/Policy.h
src/tools/immutable_object_cache/SimplePolicy.cc
src/tools/immutable_object_cache/SimplePolicy.h