Skip to content

Commit c660690

Browse files
author
Brian Chen
committed
revert change
1 parent 6ca237f commit c660690

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ public static String databaseName(String persistenceKey, DatabaseId databaseId)
8383
private final SQLiteBundleCache bundleCache;
8484
private final SQLiteIndexManager indexManager;
8585
private final SQLiteRemoteDocumentCache remoteDocumentCache;
86-
private final SQLiteLruReferenceDelegate lruReferenceDelegate;
86+
private final SQLiteLruReferenceDelegate referenceDelegate;
8787
private final IndexBackfiller indexBackfiller;
8888
private final SQLiteTransactionListener transactionListener =
8989
new SQLiteTransactionListener() {
9090
@Override
9191
public void onBegin() {
92-
lruReferenceDelegate.onTransactionStarted();
92+
referenceDelegate.onTransactionStarted();
9393
}
9494

9595
@Override
9696
public void onCommit() {
97-
lruReferenceDelegate.onTransactionCommitted();
97+
referenceDelegate.onTransactionCommitted();
9898
}
9999

100100
@Override
@@ -124,7 +124,7 @@ public SQLitePersistence(
124124
this.indexManager = new SQLiteIndexManager(this, this.serializer);
125125
this.bundleCache = new SQLiteBundleCache(this, this.serializer);
126126
this.remoteDocumentCache = new SQLiteRemoteDocumentCache(this, this.serializer);
127-
this.lruReferenceDelegate = new SQLiteLruReferenceDelegate(this, params);
127+
this.referenceDelegate = new SQLiteLruReferenceDelegate(this, params);
128128
this.indexBackfiller = new IndexBackfiller(this);
129129
}
130130

@@ -147,7 +147,7 @@ public void start() {
147147
e);
148148
}
149149
targetCache.start();
150-
lruReferenceDelegate.start(targetCache.getHighestListenSequenceNumber());
150+
referenceDelegate.start(targetCache.getHighestListenSequenceNumber());
151151
}
152152

153153
@Override
@@ -165,7 +165,7 @@ public boolean isStarted() {
165165

166166
@Override
167167
public SQLiteLruReferenceDelegate getReferenceDelegate() {
168-
return lruReferenceDelegate;
168+
return referenceDelegate;
169169
}
170170

171171
public IndexBackfiller getIndexBackfiller() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private void createFieldIndex() {
367367
+ "index_value BLOB, " // field value pairs
368368
+ "uid TEXT, " // user id or null if there are no pending mutations
369369
+ "document_id TEXT, "
370-
+ "PRIMARY KEY (index_id, uid, document_id))");
370+
+ "PRIMARY KEY (index_id, index_value, uid, document_id))");
371371
});
372372
}
373373

0 commit comments

Comments
 (0)