aboutsummaryrefslogtreecommitdiff
path: root/zenstore/CAS.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-23 12:10:56 +0200
committerStefan Boberg <[email protected]>2021-09-23 12:10:56 +0200
commit105826c3e349eff6ddcd45dec4af81f9a3279f42 (patch)
tree7a46cf9d9a1e1d448a547526b82fe7ffc7fe06b0 /zenstore/CAS.cpp
parentMerge branch 'main' of https://github.com/EpicGames/zen (diff)
downloadzen-105826c3e349eff6ddcd45dec4af81f9a3279f42.tar.xz
zen-105826c3e349eff6ddcd45dec4af81f9a3279f42.zip
Fixed dumb bug in CasChunkSet::IterateChunks which would cause infinite loop
Diffstat (limited to 'zenstore/CAS.cpp')
-rw-r--r--zenstore/CAS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp
index eaf72cb41..1db2b50bf 100644
--- a/zenstore/CAS.cpp
+++ b/zenstore/CAS.cpp
@@ -50,7 +50,7 @@ CasChunkSet::RemoveChunksIf(std::function<bool(const IoHash& CandidateHash)>&& P
void
CasChunkSet::IterateChunks(std::function<void(const IoHash& ChunkHash)>&& Callback)
{
- for (auto It = begin(m_ChunkSet), ItEnd = end(m_ChunkSet); It != ItEnd;)
+ for (auto It = begin(m_ChunkSet), ItEnd = end(m_ChunkSet); It != ItEnd; ++It)
{
Callback(*It);
}