diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index dd56f797558cc111e2d8e68b398d229c9e177ed0..8ff2562a72540a46c393a7a67af56ed7e89790e5 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -482,7 +482,7 @@ void DBImpl::BackgroundCompaction(std::set table_ids) { meta_ptr_->Archive(); - int ttl = 1; + int ttl = 5*meta::M_SEC;//default: file will be deleted after 5 minutes if (options_.mode == Options::MODE::CLUSTER) { ttl = meta::D_SEC; }