aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzousar <[email protected]>2025-09-25 08:11:42 -0600
committerzousar <[email protected]>2025-09-25 08:11:42 -0600
commit49db9aa18dc564c3de9ca23eae64d81de54db2d8 (patch)
tree3bd85d7498ba43217551867fc48cdd1d407eb1ff /src
parentChangelog (diff)
downloadzen-49db9aa18dc564c3de9ca23eae64d81de54db2d8.tar.xz
zen-49db9aa18dc564c3de9ca23eae64d81de54db2d8.zip
Improvement to Incomplete Result Iteration
From review feedback
Diffstat (limited to 'src')
-rw-r--r--src/zenstore/cache/cacherpc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/zenstore/cache/cacherpc.cpp b/src/zenstore/cache/cacherpc.cpp
index fc34a28cf..e4f23816d 100644
--- a/src/zenstore/cache/cacherpc.cpp
+++ b/src/zenstore/cache/cacherpc.cpp
@@ -956,8 +956,7 @@ CacheRpcHandler::HandleRpcGetCacheRecords(const CacheRequestContext& Context, Cb
ResponseObject.AddBool(true);
if (++IndexIntoIncompleteResultArray >= IncompleteResultIndexes.size())
{
- // Set IncompleteResultIndex into a value we can't encounter while marching ResultIndex forward
- IncompleteResultIndex = 0;
+ IncompleteResultIndex = (size_t)-1;
}
else
{