1
0
Fork 0

Revert "Merge pull request #1677 from rqlite/restore-store-not-ready"

This reverts commit c28eff8db5, reversing
changes made to efeee215e3.
master
Philip O'Toole 8 months ago
parent fb3835085d
commit 5b4d366e01

@ -4,7 +4,6 @@
- [PR #1671](https://github.com/rqlite/rqlite/pull/1670): Minor optimizations to Unified Request processing.
- [PR #1674](https://github.com/rqlite/rqlite/pull/1674): Small refactor of _Stale Reads_ check.
- [PR #1675](https://github.com/rqlite/rqlite/pull/1675): Use `atomic.Uint64` instead of Mutexes for Store indexes.
- [PR #1677](https://github.com/rqlite/rqlite/pull/1677): Mark the Store as _not ready_ during a Raft Restore from Snapshot. See issue [#1672](https://github.com/rqlite/rqlite/issues/1672).
## 8.19.0 (February 3rd 2024)
This release allows you to set a maximum amount of a time a query will run. If the query does not complete within the set time, an error will be returned.

@ -1989,12 +1989,6 @@ func (s *Store) fsmRestore(rc io.ReadCloser) (retErr error) {
stats.Add(numRestoresFailed, 1)
}
}()
// Running a Restore marks the Store as not ready.
snapshotRunningCh := make(chan struct{})
s.RegisterReadyChannel(snapshotRunningCh)
defer close(snapshotRunningCh)
s.logger.Printf("initiating node restore on node ID %s", s.raftID)
startT := time.Now()

Loading…
Cancel
Save