diff options
-rw-r--r-- | src/storage/local/LocalStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/local/LocalStorage.cpp b/src/storage/local/LocalStorage.cpp index 5134c0b7..3e30fe8c 100644 --- a/src/storage/local/LocalStorage.cpp +++ b/src/storage/local/LocalStorage.cpp @@ -340,7 +340,7 @@ LocalStorage::LocalStorage(const Config& config) : m_config(config) void LocalStorage::finalize() { - if (m_config.stats()) { + if (m_config.stats() && !m_counter_updates.all_zero()) { // Pseudo-randomly choose one of the stats files in the 256 level 2 // directories. const auto bucket = getpid() % 256; |