aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-23 00:03:29 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:29:27 +0200
commite61ad5aeae19be5d0c8ddaf89f6f7dab3c381b67 (patch)
treed86dad473862c9d57efcce8dbe3772bcaf09eb0d /zenstore/compactcas.cpp
parentReduce lock scope while fetching a chunk (diff)
downloadzen-e61ad5aeae19be5d0c8ddaf89f6f7dab3c381b67.tar.xz
zen-e61ad5aeae19be5d0c8ddaf89f6f7dab3c381b67.zip
cleanup
Diffstat (limited to 'zenstore/compactcas.cpp')
-rw-r--r--zenstore/compactcas.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp
index 63e5168c7..1f49dd7c2 100644
--- a/zenstore/compactcas.cpp
+++ b/zenstore/compactcas.cpp
@@ -2091,7 +2091,6 @@ TEST_CASE("compactcas.threadedinsert") // * doctest::skip(true))
NewChunks.emplace_back(Chunk);
}
-// WorkerThreadPool ThreadPool(4 /* std::thread::hardware_concurrency() + 2*/); // Flood it a little
RwLock ChunkHashesLock;
std::atomic_uint32_t AddedChunkCount;
@@ -2177,7 +2176,7 @@ TEST_CASE("compactcas.threadedinsert") // * doctest::skip(true))
int32_t C = 0;
while (C < KeepHashes.size())
{
- if (C % 3 == 0 && C < KeepHashes.size() - 1)
+ if (C % 77 == 0 && C < KeepHashes.size() - 1)
{
KeepHashes[C] = KeepHashes[KeepHashes.size() - 1];
KeepHashes.pop_back();