1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 23:21:54 +08:00

Merge pull request #5036 from eginez/warningOnSync

Warning when NoSync setting is set as it does not turn syncing off…
This commit is contained in:
Whyrusleeping
2018-05-31 13:36:58 +08:00
committed by GitHub

View File

@ -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 {