Skip to content

Commit 5e1bb9b

Browse files
authored
Merge pull request #7207 from cloudflare/maizatskyi/2026-09-01-arrayptr3
Own actor cache keys queued for erasure
2 parents a950a84 + 37a62df commit 5e1bb9b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/workerd/io/actor-cache.c++‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ void ActorCache::markGapsEmpty(
16841684
}
16851685
}
16861686

1687-
kj::Vector<KeyPtr> keysToErase;
1687+
kj::Vector<Key> keysToErase;
16881688
auto beginIter = map.seek(beginKey);
16891689
auto mapEnd = map.ordered().end();
16901690
for (auto iter = beginIter; iter != mapEnd; ++iter) {
@@ -1728,7 +1728,7 @@ void ActorCache::markGapsEmpty(
17281728
if (prevGapIsEmpty) {
17291729
// Unfortunately erasing from the map will invalidate our iterator, so we need to make
17301730
// a second pass to erase, below.
1731-
keysToErase.add(entry.key);
1731+
keysToErase.add(cloneKey(entry.key));
17321732
}
17331733
}
17341734

0 commit comments

Comments
 (0)