aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-21 11:00:13 +0200
committerStefan Boberg <[email protected]>2021-10-21 11:00:13 +0200
commit52273abe8fb105dd912173b7efdfed2a35343851 (patch)
treec54fdada29284ea3438fd64b0c0d2514069b7173 /zenserver/zenserver.cpp
parentFixed failing test. (diff)
downloadzen-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.cpp6
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())
{