Skip to content

Commit

Permalink
Merge pull request #5036 from eginez/warningOnSync
Browse files Browse the repository at this point in the history
Warning when NoSync setting is set as it does not turn syncing off…
  • Loading branch information
whyrusleeping authored May 31, 2018
2 parents 9bb6174 + 135183a commit e235d02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo/fsrepo/fsrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ func (r *FSRepo) openDatastore() error {
} else if r.config.Datastore.Spec == nil {
return fmt.Errorf("required Datastore.Spec entry missing from config file")
}
if r.config.Datastore.NoSync {
log.Warning("NoSync is now deprecated in favor of datastore specific settings. If you want to disable fsync on flatfs set 'sync' to false. See https://github.com/ipfs/go-ipfs/blob/master/docs/datastores.md#flatfs.")
}

dsc, err := AnyDatastoreConfig(r.config.Datastore.Spec)
if err != nil {
Expand Down

0 comments on commit e235d02

Please sign in to comment.