]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
tools: new cache sub-dir rule for immutable obj cache daemon
authorYuan Zhou <yuan.zhou@intel.com>
Wed, 13 Mar 2019 03:31:42 +0000 (11:31 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Thu, 21 Mar 2019 16:16:31 +0000 (00:16 +0800)
commit8179677fe3a27b67b6a13d7647c65979db1eaa04
tree8127c7e952179efcbea65858e69ef2563e6e2217
parent8ec40b52d62896b3f2b11b188d255ee5ce84602e
tools: new cache sub-dir rule for immutable obj cache daemon

do not use static sub-dirs for cache, instead we create the sub-dir
dynamically with the first two charactor of crc32(file_name)

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
src/common/options.cc
src/test/immutable_object_cache/test_object_store.cc
src/tools/immutable_object_cache/ObjectCacheStore.cc
src/tools/immutable_object_cache/ObjectCacheStore.h