aboutsummaryrefslogtreecommitdiff
path: root/zenstore/cas.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-29 17:07:39 +0200
committerDan Engelbrecht <[email protected]>2022-03-29 17:07:39 +0200
commit8c490884d4ec2fdd9f0b7024046cced3854a1b19 (patch)
tree978da68e9e28bded29f79856e076e3c8f4fdbb36 /zenstore/cas.cpp
parentClear gathered Cid array periodically and add just the new ones (diff)
downloadzen-8c490884d4ec2fdd9f0b7024046cced3854a1b19.tar.xz
zen-8c490884d4ec2fdd9f0b7024046cced3854a1b19.zip
Add whole range in CasChunkSet::AddChunksToSet(std::span<const IoHash> HashesToAdd)
Diffstat (limited to 'zenstore/cas.cpp')
-rw-r--r--zenstore/cas.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/zenstore/cas.cpp b/zenstore/cas.cpp
index 7b58111db..a90e45c04 100644
--- a/zenstore/cas.cpp
+++ b/zenstore/cas.cpp
@@ -39,10 +39,7 @@ CasChunkSet::AddChunkToSet(const IoHash& HashToAdd)
void
CasChunkSet::AddChunksToSet(std::span<const IoHash> HashesToAdd)
{
- for (const IoHash& Hash : HashesToAdd)
- {
- m_ChunkSet.insert(Hash);
- }
+ m_ChunkSet.insert(HashesToAdd.begin(), HashesToAdd.end());
}
void