File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ import { Persistence } from './persistence';
41
41
import { PersistencePromise } from './persistence_promise' ;
42
42
import { PersistenceTransaction } from './persistence_transaction' ;
43
43
import { TargetData } from './target_data' ;
44
+ import { SnapshotVersion } from "../core/snapshot_version" ;
44
45
45
46
/** Provides LRU functionality for IndexedDB persistence. */
46
47
export class IndexedDbLruDelegateImpl implements IndexedDbLruDelegate {
@@ -152,8 +153,8 @@ export class IndexedDbLruDelegateImpl implements IndexedDbLruDelegate {
152
153
documentCount ++ ;
153
154
// Our size accounting requires us to read all documents before
154
155
// removing them.
155
- return changeBuffer . getEntry ( txn , docKey ) . next ( entry => {
156
- changeBuffer . removeEntry ( docKey , entry . readTime ) ;
156
+ return changeBuffer . getEntry ( txn , docKey ) . next ( ( ) => {
157
+ changeBuffer . removeEntry ( docKey , SnapshotVersion . min ( ) ) ;
157
158
return documentTargetStore ( txn ) . delete ( sentinelKey ( docKey ) ) ;
158
159
} ) ;
159
160
}
You can’t perform that action at this time.
0 commit comments