From 73583d4e74990e59b4852fcf5f310d79c2d69b67 Mon Sep 17 00:00:00 2001 From: RebeccaMahany Date: Thu, 25 Jul 2024 16:00:38 -0400 Subject: [PATCH] Adjust strict mode for opening indexeddb --- ee/indexeddb/indexeddb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/indexeddb/indexeddb.go b/ee/indexeddb/indexeddb.go index 97fe8da61..6a7006d21 100644 --- a/ee/indexeddb/indexeddb.go +++ b/ee/indexeddb/indexeddb.go @@ -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, err := leveldb.OpenFile(tempDbCopyLocation, opts) if err != nil {