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 <sage@redhat.com>
This commit is contained in:
parent
543c12ab06
commit
d666225a0a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user