Skip to content

Commit a949838

Browse files
authored
Avoid index-open/event emission during ensureIndex reindex
1 parent f3c0c03 commit a949838

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Storage/WritableStorage.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,7 @@ class WritableStorage extends ReadableStorage {
430430
try {
431431
this.forEachDocument((document, indexEntry) => {
432432
if (matches(document, matcher)) {
433-
if (!index.isOpen()) {
434-
index.open();
435-
}
436433
index.add(indexEntry);
437-
this.emit('index-add', name, index.length, document);
438434
}
439435
});
440436
} catch (e) {

0 commit comments

Comments
 (0)