Skip to content

Commit c1d85cc

Browse files
dconeybejeremyjiang-dev
authored andcommitted
MemoryDocumentOverlayCache.java: add a comment about getOverlays() for collectionGroup only being implemented for testing purposes (#3443)
1 parent e7a22ba commit c1d85cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/local/MemoryDocumentOverlayCache.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public Map<DocumentKey, Overlay> getOverlays(ResourcePath collection, int sinceB
117117
@Override
118118
public Map<DocumentKey, Overlay> getOverlays(
119119
String collectionGroup, int sinceBatchId, int count) {
120+
// NOTE: This method is only used by the backfiller, which will not run for memory persistence;
121+
// therefore, this method is being implemented only so that the test suite for
122+
// `LevelDbDocumentOverlayCache` can be re-used by the test suite for this class.
120123
SortedMap<Integer, Map<DocumentKey, Overlay>> batchIdToOverlays = new TreeMap<>();
121124

122125
for (Overlay overlay : overlays.values()) {

0 commit comments

Comments
 (0)