There was an error while loading. Please reload this page.
2 parents a950a84 + 37a62df commit 5e1bb9bCopy full SHA for 5e1bb9b
1 file changed
src/workerd/io/actor-cache.c++
@@ -1684,7 +1684,7 @@ void ActorCache::markGapsEmpty(
1684
}
1685
1686
1687
- kj::Vector<KeyPtr> keysToErase;
+ kj::Vector<Key> keysToErase;
1688
auto beginIter = map.seek(beginKey);
1689
auto mapEnd = map.ordered().end();
1690
for (auto iter = beginIter; iter != mapEnd; ++iter) {
@@ -1728,7 +1728,7 @@ void ActorCache::markGapsEmpty(
1728
if (prevGapIsEmpty) {
1729
// Unfortunately erasing from the map will invalidate our iterator, so we need to make
1730
// a second pass to erase, below.
1731
- keysToErase.add(entry.key);
+ keysToErase.add(cloneKey(entry.key));
1732
1733
1734
0 commit comments