From 8179677fe3a27b67b6a13d7647c65979db1eaa04 Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Wed, 13 Mar 2019 11:31:42 +0800 Subject: [PATCH] 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 --- src/common/options.cc | 4 -- .../test_object_store.cc | 5 +- .../ObjectCacheStore.cc | 64 +++++++++++-------- .../immutable_object_cache/ObjectCacheStore.h | 3 +- 4 files changed, 40 insertions(+), 36 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index e6a4d507cce..3a3c3be5a0b 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7413,10 +7413,6 @@ static std::vector