1
0
Fork 0

Always close the Snaphot

This may explain many test failures on Windows, for example
https://ci.appveyor.com/project/otoolep/rqlite/builds/48967106.
master
Philip O'Toole 8 months ago
parent 19d03cc1e7
commit bbaa973f45

@ -48,4 +48,7 @@ func (s *Snapshot) Persist(sink raft.SnapshotSink) error {
}
// Release releases the snapshot.
func (s *Snapshot) Release() {}
func (s *Snapshot) Release() {
// Necessary in case Persist() is never called.
s.rc.Close()
}

Loading…
Cancel
Save