Skip to content

Commit 1ba0fe1

Browse files
Review
1 parent db788d1 commit 1ba0fe1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/firestore/src/local/local_store.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,11 @@ class LocalStoreImpl implements LocalStore {
934934
}
935935
} catch (e) {
936936
if (isIndexedDbTransactionError(e)) {
937-
// If `releaseTarget` fails, we did not advance the sequence number of
938-
// the target. While the target might be deleted earlier than it
939-
// otherwise would have, it does not invalidate its integrity.
937+
// All `releaseTarget` does is record the final metadata state for the
938+
// target, but we've been recording this periodically during target
939+
// activity. If we lose this write this could cause a very slight
940+
// difference in the order of target deletion during GC, but we
941+
// don't define exact LRU semantics so this is acceptable.
940942
logDebug(
941943
LOG_TAG,
942944
`Failed to update sequence numbers for target ${targetId}: ${e}`

0 commit comments

Comments
 (0)