aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-03 09:29:19 +0200
committerDan Engelbrecht <[email protected]>2022-05-03 09:29:19 +0200
commitaf21c74a4cb0cb6f479c4cc15830eee5070d9ae3 (patch)
tree3545e938ff434f7e3675a4e87c9703546b43a826
parentswitched back memory_order for m_TotalSize to relaxed (diff)
downloadzen-af21c74a4cb0cb6f479c4cc15830eee5070d9ae3.tar.xz
zen-af21c74a4cb0cb6f479c4cc15830eee5070d9ae3.zip
cleanup
-rw-r--r--zenstore/blockstore.cpp2
-rw-r--r--zenstore/include/zenstore/blockstore.h4
2 files changed, 1 insertions, 5 deletions
diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp
index 2573863a8..f0a798e36 100644
--- a/zenstore/blockstore.cpp
+++ b/zenstore/blockstore.cpp
@@ -773,7 +773,7 @@ BlockStore::Split(const std::vector<BlockStoreLocation>& ChunkLocations,
ChunkIndexes.push_back(Index);
}
- std::sort(begin(ChunkIndexes), end(ChunkIndexes), [&ChunkLocations](size_t Lhs, size_t Rhs) {
+ std::sort(begin(ChunkIndexes), end(ChunkIndexes), [&](size_t Lhs, size_t Rhs) {
const BlockStoreLocation& LhsLocation = ChunkLocations[Lhs];
const BlockStoreLocation& RhsLocation = ChunkLocations[Rhs];
return LhsLocation.Offset < RhsLocation.Offset;
diff --git a/zenstore/include/zenstore/blockstore.h b/zenstore/include/zenstore/blockstore.h
index e153b530e..b40704ada 100644
--- a/zenstore/include/zenstore/blockstore.h
+++ b/zenstore/include/zenstore/blockstore.h
@@ -22,10 +22,6 @@ struct BlockStoreLocation
inline auto operator<=>(const BlockStoreLocation& Rhs) const = default;
};
-constexpr BlockStoreLocation InvalidBlockStoreLocation{.BlockIndex = 0xfffffffful,
- .Offset = 0xffffffffffffffffull,
- .Size = 0xffffffffffffffffull};
-
#pragma pack(push)
#pragma pack(1)