aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)