aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-01 22:47:46 +0200
committerDan Engelbrecht <[email protected]>2022-04-01 22:47:46 +0200
commite51efe1674fa3d9d4af715d85a4045e1ee7450f3 (patch)
tree7d7fc4ad33fdd36e5d97719895984f83adb09957 /zenstore/compactcas.cpp
parentlinux fixes (diff)
downloadzen-e51efe1674fa3d9d4af715d85a4045e1ee7450f3.tar.xz
zen-e51efe1674fa3d9d4af715d85a4045e1ee7450f3.zip
linux compilation fixes
Diffstat (limited to 'zenstore/compactcas.cpp')
-rw-r--r--zenstore/compactcas.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp
index c424cde74..7e52f31db 100644
--- a/zenstore/compactcas.cpp
+++ b/zenstore/compactcas.cpp
@@ -1170,7 +1170,7 @@ CasContainerStrategy::CollectGarbage(GcContext& GcCtx)
if (!NewBlockFile || (WriteOffset + Chunk.size() > m_MaxBlockSize))
{
- uint32_t NextBlockIndex = m_WriteBlockIndex.load(std::memory_order::memory_order_relaxed);
+ uint32_t NextBlockIndex = m_WriteBlockIndex.load(std::memory_order_relaxed);
std::vector<CasDiskIndexEntry> LogEntries = MakeCasDiskEntries(MovedBlockChunks, {});
m_CasLog.Append(LogEntries);
m_CasLog.Flush();
@@ -2398,7 +2398,7 @@ TEST_CASE("compactcas.threadedinsert") // * doctest::skip(true))
}
}
std::vector<IoHash> KeepHashes(GcChunkHashes.begin(), GcChunkHashes.end());
- int32_t C = 0;
+ size_t C = 0;
while (C < KeepHashes.size())
{
if (C % 155 == 0)
@@ -2445,7 +2445,7 @@ TEST_CASE("compactcas.threadedinsert") // * doctest::skip(true))
}
}
std::vector<IoHash> KeepHashes(GcChunkHashes.begin(), GcChunkHashes.end());
- int32_t C = 0;
+ size_t C = 0;
while (C < KeepHashes.size())
{
if (C % 77 == 0 && C < KeepHashes.size() - 1)
@@ -2482,16 +2482,6 @@ TEST_CASE("compactcas.threadedinsert") // * doctest::skip(true))
TEST_CASE("compactcas.migrate.large.data" * doctest::skip(true))
{
- auto getChunkSet = [](const std::vector<CasDiskIndexEntry>& Entries) {
- std::unordered_set<IoHash, IoHash::Hasher> ChunkHashes;
- ChunkHashes.reserve(Entries.size());
- for (const auto& Entry : Entries)
- {
- ChunkHashes.insert(Entry.Key);
- }
- return ChunkHashes;
- };
-
const char* BigDataPath = "D:\\zen-data\\dc4-zen-cache-t\\cas";
std::filesystem::path TobsBasePath = GetBasePath(BigDataPath, "tobs");
std::filesystem::path SobsBasePath = GetBasePath(BigDataPath, "sobs");