diff options
| author | Dan Engelbrecht <[email protected]> | 2024-03-28 14:56:20 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-03-28 14:56:20 +0100 |
| commit | 76ac4d541c603dd869e18cfbc6644ebf6c6e22d7 (patch) | |
| tree | f919560d5ddb5a33057f9337d930ca327149dafd /src/zenstore/gc.cpp | |
| parent | add "fieldnames" query param for GetProjectFiles/GetProjectChunkInfos (#29) (diff) | |
| download | zen-76ac4d541c603dd869e18cfbc6644ebf6c6e22d7.tar.xz zen-76ac4d541c603dd869e18cfbc6644ebf6c6e22d7.zip | |
Use multithreading to fetch size/rawsize of entries in `/prj/{project}/oplog/{log}/chunkinfos` and `/prj/{project}/oplog/{log}/files` (#30)
- Improvement: Use multithreading to fetch size/rawsize of entries in `/prj/{project}/oplog/{log}/chunkinfos` and `/prj/{project}/oplog/{log}/files`
- Improvement: Add `GetMediumWorkerPool()` in addition to `LargeWorkerPool()` and `SmallWorkerPool()`
Diffstat (limited to 'src/zenstore/gc.cpp')
| -rw-r--r-- | src/zenstore/gc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp index f6469c51d..1a34019fb 100644 --- a/src/zenstore/gc.cpp +++ b/src/zenstore/gc.cpp @@ -618,7 +618,7 @@ GcManager::CollectGarbage(const GcSettings& Settings) std::unordered_map<std::unique_ptr<GcStoreCompactor>, GcCompactStoreStats*> StoreCompactors; RwLock StoreCompactorsLock; - WorkerThreadPool& ThreadPool = Settings.SingleThread ? GetSyncWorkerPool() : GetSmallWorkerPool(); + WorkerThreadPool& ThreadPool = Settings.SingleThread ? GetSyncWorkerPool() : GetMediumWorkerPool(); ZEN_INFO("GCV2: Removing expired data from {} referencers", m_GcReferencers.size()); if (!m_GcReferencers.empty()) @@ -2019,7 +2019,7 @@ GcScheduler::ScrubStorage(bool DoDelete, bool SkipCid, std::chrono::seconds Time Stopwatch Timer; ZEN_INFO("scrubbing STARTING (delete mode => {}, skip CID => {})", DoDelete, SkipCid); - WorkerThreadPool& ThreadPool = GetSmallWorkerPool(); + WorkerThreadPool& ThreadPool = GetMediumWorkerPool(); ScrubContext Ctx{ThreadPool, Deadline}; try |