aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/zenserverprocess.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-11-10 16:12:59 +0100
committerGitHub <[email protected]>2023-11-10 16:12:59 +0100
commitfa7c53b1dec7254bf793e7c0df82eb486a7490a5 (patch)
tree4eb9e8885231eb8364a7ec22d75b2f5a9626dca0 /src/zenutil/zenserverprocess.cpp
parentreduce memory footprint for bucket indexes (#526) (diff)
downloadzen-fa7c53b1dec7254bf793e7c0df82eb486a7490a5.tar.xz
zen-fa7c53b1dec7254bf793e7c0df82eb486a7490a5.zip
fix bad access to unlocked state (#527)
* don't touch non-locked data when creating manifest * safety assert for test dir
Diffstat (limited to 'src/zenutil/zenserverprocess.cpp')
-rw-r--r--src/zenutil/zenserverprocess.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenutil/zenserverprocess.cpp b/src/zenutil/zenserverprocess.cpp
index b1666ad0a..83c6668ba 100644
--- a/src/zenutil/zenserverprocess.cpp
+++ b/src/zenutil/zenserverprocess.cpp
@@ -438,6 +438,7 @@ ZenServerEnvironment::CreateNewTestDir()
TestDir << "test"sv << int64_t(++ZenServerTestCounter);
std::filesystem::path TestPath = m_TestBaseDir / TestDir.c_str();
+ ZEN_ASSERT(!std::filesystem::exists(TestPath));
ZEN_INFO("Creating new test dir @ '{}'", TestPath);