From: Sage Weil Date: Mon, 28 Sep 2015 19:29:31 +0000 (-0400) Subject: db_impl: disable recycle_log_files if WAL archive is enabled X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d37544c86fbf5944315db23ccaeb4a5de18cec78;p=rocksdb.git db_impl: disable recycle_log_files if WAL archive is enabled We can't recycle the files if they are being archived. Signed-off-by: Sage Weil --- diff --git a/db/db_impl.cc b/db/db_impl.cc index f4ff9762..2e05c686 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -150,6 +150,10 @@ DBOptions SanitizeOptions(const std::string& dbname, const DBOptions& src) { } } + if (result.WAL_ttl_seconds > 0 || result.WAL_size_limit_MB > 0) { + result.recycle_log_file_num = false; + } + if (result.wal_dir.empty()) { // Use dbname as default result.wal_dir = dbname;