We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f97224 commit 4cf4e7cCopy full SHA for 4cf4e7c
Firestore/core/src/local/leveldb_remote_document_cache.cc
@@ -172,15 +172,16 @@ MutableDocumentMap LevelDbRemoteDocumentCache::GetAll(
172
MutableDocumentMap LevelDbRemoteDocumentCache::GetAllExisting(
173
const DocumentKeySet& keys) {
174
MutableDocumentMap docs = LevelDbRemoteDocumentCache::GetAll(keys);
175
+ MutableDocumentMap result;
176
for (const auto& kv : docs) {
177
const DocumentKey& key = kv.first;
178
auto& document = kv.second;
- if (!document.is_found_document()) {
179
- docs = docs.erase(key);
+ if (document.is_found_document()) {
180
+ result = result.insert(key, document);
181
}
182
183
- return docs;
184
+ return result;
185
186
187
MutableDocumentMap LevelDbRemoteDocumentCache::GetMatching(
0 commit comments