diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index b028dd3ea3a34b566554c4715e0ab29f9dd7c9cd..fec7035c1fe044ad053432fa87bd7094a246d1ac 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -139,7 +139,9 @@ DBImpl::DBImpl(const Options& options) meta_ptr_ = DBMetaImplFactory::Build(options.meta); mem_mgr_ = std::make_shared(meta_ptr_, options_); // mem_mgr_ = (MemManagerPtr)(new MemManager(meta_ptr_, options_)); - StartTimerTasks(); + if (options.mode != "read_only") { + StartTimerTasks(); + } } Status DBImpl::CreateTable(meta::TableSchema& table_schema) {