diff --git a/http/service.go b/http/service.go index fa67f355..76a3e9f5 100644 --- a/http/service.go +++ b/http/service.go @@ -679,13 +679,6 @@ func (s *Service) handleLoad(w http.ResponseWriter, r *http.Request, qp QueryPar Data: b, } - if db.IsWALModeEnabled(b) { - s.logger.Printf("SQLite database file is in WAL mode - rejecting load request") - http.Error(w, `SQLite database file is in WAL mode - convert it to DELETE mode via 'PRAGMA journal_mode=DELETE'`, - http.StatusBadRequest) - return - } - err := s.store.Load(lr) if err != nil && err != store.ErrNotLeader { http.Error(w, err.Error(), http.StatusInternalServerError) diff --git a/store/store.go b/store/store.go index af41f64e..591f750f 100644 --- a/store/store.go +++ b/store/store.go @@ -367,9 +367,6 @@ func (s *Store) SetRestorePath(path string) error { if !sql.IsValidSQLiteFile(path) { return fmt.Errorf("file %s is not a valid SQLite file", path) } - if sql.IsWALModeEnabledSQLiteFile(path) { - return fmt.Errorf("file %s is in WAL mode - convert to DELETE mode", path) - } s.RegisterReadyChannel(s.restoreDoneCh) s.restorePath = path