From 18abe7193870e69cc3eb3096832762d95c0d9370 Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Thu, 21 Mar 2019 19:08:54 +0800 Subject: [PATCH] tools: move options parsing into ObjectCacheStore for immutable obj cache daemon This makes the options parsing more easy to read. SimplePolicy will get those options from ObjectCacheStore. Signed-off-by: Yuan Zhou --- src/common/options.cc | 2 +- .../test_SimplePolicy.cc | 2 +- .../ObjectCacheStore.cc | 20 +++++++++++-------- .../immutable_object_cache/ObjectCacheStore.h | 2 -- .../immutable_object_cache/SimplePolicy.cc | 14 ++++++++----- .../immutable_object_cache/SimplePolicy.h | 5 +++-- 6 files changed, 26 insertions(+), 19 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 3a3c3be5a0b..002719c8eac 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7404,7 +7404,7 @@ static std::vector