don't open bolt tracking store with NoSync, it might get corrupted

This commit is contained in:
vyzo 2021-03-19 12:36:20 +02:00
parent b2b7eb2ded
commit e9f531b4aa

View File

@ -21,7 +21,6 @@ var _ TrackingStore = (*BoltTrackingStore)(nil)
func OpenBoltTrackingStore(path string) (*BoltTrackingStore, error) { func OpenBoltTrackingStore(path string) (*BoltTrackingStore, error) {
opts := &bolt.Options{ opts := &bolt.Options{
Timeout: 1 * time.Second, Timeout: 1 * time.Second,
NoSync: true,
} }
db, err := bolt.Open(path, 0644, opts) db, err := bolt.Open(path, 0644, opts)
if err != nil { if err != nil {