Skip to content

Commit

Permalink
[KATC/IndexedDB] Adjust strict mode for opening leveldb-backed indexe…
Browse files Browse the repository at this point in the history
…ddb (#1800)
  • Loading branch information
RebeccaMahany authored Jul 25, 2024
1 parent cdb97cf commit 58930a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/indexeddb/indexeddb.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ func QueryIndexeddbObjectStore(dbLocation string, dbName string, objectStoreName

opts := &opt.Options{
Comparer: indexeddbComparer,
DisableSeeksCompaction: true, // no need to perform compaction
Strict: opt.StrictAll,
DisableSeeksCompaction: true, // no need to perform compaction
Strict: opt.StrictRecovery, // we prefer to drop corrupted data rather than fail to open the db altogether
}
db, dbOpenErr := leveldb.OpenFile(tempDbCopyLocation, opts)
if dbOpenErr != nil {
Expand Down

0 comments on commit 58930a6

Please sign in to comment.