Skip to content

Commit aca400a

Browse files
Remove shared index entries
1 parent 4e336c6 commit aca400a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private void addSingleEntry(
376376
"INSERT INTO index_entries (index_id, uid, array_value, directional_value, document_name) "
377377
+ "VALUES(?, ?, ?, ?, ?)",
378378
indexId,
379-
document.hasLocalMutations() ? user.getUid() : null,
379+
user.getUid(),
380380
arrayValue,
381381
directionalValue,
382382
document.getKey().toString());
@@ -450,7 +450,7 @@ private SQLitePersistence.Query generateQuery(
450450
// and an upper bound.
451451
StringBuilder statement = new StringBuilder();
452452
statement.append("SELECT document_name, directional_value FROM index_entries ");
453-
statement.append("WHERE index_id = ? AND (uid IS NULL or uid = ?) ");
453+
statement.append("WHERE index_id = ? AND uid = ? ");
454454
if (arrayValues != null) {
455455
statement.append("AND array_value = ? ");
456456
}

0 commit comments

Comments
 (0)