1
0
Fork 0

Fix comment

master
Philip O'Toole 1 year ago
parent 7432bceca3
commit 7ce2c6b99a

@ -1595,8 +1595,7 @@ func (s *Store) Snapshot() (raft.FSMSnapshot, error) {
// Restore restores the node to a previous state. The Hashicorp docs state this
// will not be called concurrently with Apply(), so synchronization with Execute()
// is not necessary. To prevent problems during queries, which may not go through
// the log, it blocks all query requests.
// is not necessary.
func (s *Store) Restore(rc io.ReadCloser) error {
startT := time.Now()
b, err := dbBytesFromSnapshot(rc)

Loading…
Cancel
Save