aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/cache/cachedisklayer.cpp
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2025-08-08 10:44:24 -0600
committerGitHub Enterprise <[email protected]>2025-08-08 10:44:24 -0600
commit4943f66c15e66205edaf0068a73c5d7a3b2f801a (patch)
tree1dff0546e0ae7ae31a8cf0f36771639a4e68d19c /src/zenstore/cache/cachedisklayer.cpp
parentprecommit (diff)
parent5.6.15 (diff)
downloadzen-4943f66c15e66205edaf0068a73c5d7a3b2f801a.tar.xz
zen-4943f66c15e66205edaf0068a73c5d7a3b2f801a.zip
Merge branch 'main' into zs/put-overwrite-policy
Diffstat (limited to 'src/zenstore/cache/cachedisklayer.cpp')
-rw-r--r--src/zenstore/cache/cachedisklayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/cache/cachedisklayer.cpp b/src/zenstore/cache/cachedisklayer.cpp
index 502ab1508..e0030230f 100644
--- a/src/zenstore/cache/cachedisklayer.cpp
+++ b/src/zenstore/cache/cachedisklayer.cpp
@@ -1408,7 +1408,7 @@ ZenCacheDiskLayer::CacheBucket::EndPutBatch(PutBatchHandle* Batch) noexcept
for (size_t Index = 0; Index < Batch->Entries.size(); Index++)
{
const std::vector<IoHash>& HashKeyAndReferences = Batch->Entries[Index].HashKeyAndReferences;
- ZEN_ASSERT(HashKeyAndReferences.size() > 0);
+ ZEN_ASSERT(HashKeyAndReferences.size() >= 1);
ZenCacheValue TemporaryValue;
TemporaryValue.Value = Batch->Buffers[Index];
@@ -1444,7 +1444,7 @@ ZenCacheDiskLayer::CacheBucket::EndPutBatch(PutBatchHandle* Batch) noexcept
DiskLocation Location(Locations[Index], m_Configuration.PayloadAlignment, EntryFlags[IndexOffset + Index]);
const std::vector<IoHash>& HashKeyAndReferences =
Batch->Entries[BufferToEntryIndexes[IndexOffset + Index]].HashKeyAndReferences;
- ZEN_ASSERT(HashKeyAndReferences.size() > 0);
+ ZEN_ASSERT(HashKeyAndReferences.size() >= 1);
const IoHash HashKey = HashKeyAndReferences[0];
DiskEntries.push_back({.Key = HashKey, .Location = Location});
if (m_TrackedCacheKeys)