From 80e61adb26a4d8066d426dd09a6ec5c5242dee9c Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 25 May 2023 14:18:56 +0200 Subject: named oplog upload worker pool threads --- src/zenserver/projectstore/remoteprojectstore.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src') 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(WorkerCount)); + WorkerThreadPool WorkerPool(gsl::narrow(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 -- cgit v1.2.3