1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 07:28:20 +08:00

Warning when NoSync setting is set as it is does not turn syncing off #3799

License: MIT
Signed-off-by: Esteban Ginez <eginez@gmail.com>
This commit is contained in:
Esteban
2018-05-26 12:51:16 -07:00
parent 2ba717994e
commit 135183aac0

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 {