diff options
| author | Stefan Boberg <[email protected]> | 2021-10-21 11:00:13 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-21 11:00:13 +0200 |
| commit | 52273abe8fb105dd912173b7efdfed2a35343851 (patch) | |
| tree | c54fdada29284ea3438fd64b0c0d2514069b7173 /zenserver/zenserver.cpp | |
| parent | Fixed failing test. (diff) | |
| download | zen-52273abe8fb105dd912173b7efdfed2a35343851.tar.xz zen-52273abe8fb105dd912173b7efdfed2a35343851.zip | |
zenserver: don't try to delete the logs directory when wiping state
also temporarily disabled scrubbing to work around startup sequencing problems
Diffstat (limited to 'zenserver/zenserver.cpp')
| -rw-r--r-- | zenserver/zenserver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index f030694db..d475ee70f 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -205,7 +205,7 @@ public: std::error_code Ec; for (const std::filesystem::directory_entry& DirEntry : std::filesystem::directory_iterator{m_DataRoot, Ec}) { - if (DirEntry.is_directory()) + if (DirEntry.is_directory() && (DirEntry.path().filename() != "logs")) { ZEN_INFO("Deleting '{}'", DirEntry.path()); @@ -331,7 +331,9 @@ public: void Run() { - Scrub(); + // This is disabled for now, awaiting better scheduling + // + // Scrub(); if (m_ProcessMonitor.IsActive()) { |