aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-09-30 22:03:44 +0200
committerGitHub Enterprise <[email protected]>2025-09-30 22:03:44 +0200
commit847790afca7ddee5fbf3998df3b86521a8eb8192 (patch)
treec4eaac78eac27ff0c42bdb1c63fd0c18f8c4af34 /src/zenserver
parentprojectstore refactor (#531) (diff)
downloadzen-847790afca7ddee5fbf3998df3b86521a8eb8192.tar.xz
zen-847790afca7ddee5fbf3998df3b86521a8eb8192.zip
skip dropped oplogs in ScanForOplogs() (#534)
Diffstat (limited to 'src/zenserver')
-rw-r--r--src/zenserver/projectstore/projectstore.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenserver/projectstore/projectstore.cpp b/src/zenserver/projectstore/projectstore.cpp
index cf30f32e0..c83ec808c 100644
--- a/src/zenserver/projectstore/projectstore.cpp
+++ b/src/zenserver/projectstore/projectstore.cpp
@@ -3978,6 +3978,11 @@ ProjectStore::Project::ScanForOplogs() const
Oplogs.reserve(DirContent.Directories.size());
for (const std::filesystem::path& DirPath : DirContent.Directories)
{
+ std::string DirName = PathToUtf8(DirPath.filename());
+ if (DirName.starts_with("[dropped]"))
+ {
+ continue;
+ }
if (Oplog::ExistsAt(DirPath))
{
Oplogs.push_back(DirPath.filename().string());