aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-25 14:18:56 +0200
committerStefan Boberg <[email protected]>2023-05-25 14:18:56 +0200
commit80e61adb26a4d8066d426dd09a6ec5c5242dee9c (patch)
tree766e639de8240c9f9b44a53c57cd45a418c6594f /src
parentminor: comment fix (diff)
downloadzen-80e61adb26a4d8066d426dd09a6ec5c5242dee9c.tar.xz
zen-80e61adb26a4d8066d426dd09a6ec5c5242dee9c.zip
named oplog upload worker pool threads
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/projectstore/remoteprojectstore.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/zenserver/projectstore/remoteprojectstore.cpp b/src/zenserver/projectstore/remoteprojectstore.cpp
index 1e6ca51a1..c466b1cbb 100644
--- a/src/zenserver/projectstore/remoteprojectstore.cpp
+++ b/src/zenserver/projectstore/remoteprojectstore.cpp
@@ -442,7 +442,7 @@ SaveOplog(CidStore& ChunkStore,
// We are creating a worker thread pool here since we are uploading a lot of attachments in one go
// Doing upload is a rare and transient occation so we don't want to keep a WorkerThreadPool alive.
size_t WorkerCount = Min(std::thread::hardware_concurrency(), 16u);
- WorkerThreadPool WorkerPool(gsl::narrow<int>(WorkerCount));
+ WorkerThreadPool WorkerPool(gsl::narrow<int>(WorkerCount), "oplog_upload"sv);
std::filesystem::path AttachmentTempPath;
if (UseTempBlocks)
@@ -1033,4 +1033,15 @@ LoadOplog(CidStore& ChunkStore, RemoteProjectStore& RemoteStore, ProjectStore::O
return Result;
}
+//////////////////////////////////////////////////////////////////////////
+// These are here to avoid vtable leakage
+
+RemoteProjectStore::RemoteProjectStore()
+{
+}
+
+RemoteProjectStore::~RemoteProjectStore()
+{
+}
+
} // namespace zen