File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/local Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,16 +292,16 @@ private IndexOffset getMinOffset(Collection<FieldIndex> fieldIndexes) {
292
292
293
293
Iterator <FieldIndex > it = fieldIndexes .iterator ();
294
294
IndexOffset minOffset = it .next ().getIndexState ().getOffset ();
295
- int minBatchId = minOffset .getLargestBatchId ();
295
+ int maxBatchId = minOffset .getLargestBatchId ();
296
296
while (it .hasNext ()) {
297
297
IndexOffset newOffset = it .next ().getIndexState ().getOffset ();
298
298
if (newOffset .compareTo (minOffset ) < 0 ) {
299
299
minOffset = newOffset ;
300
300
}
301
- minBatchId = Math .max (newOffset .getLargestBatchId (), minBatchId );
301
+ maxBatchId = Math .max (newOffset .getLargestBatchId (), maxBatchId );
302
302
}
303
303
304
- return IndexOffset .create (minOffset .getReadTime (), minOffset .getDocumentKey (), minBatchId );
304
+ return IndexOffset .create (minOffset .getReadTime (), minOffset .getDocumentKey (), maxBatchId );
305
305
}
306
306
307
307
@ Override
You can’t perform that action at this time.
0 commit comments