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>
Esteban committed
May 26, 2018 at 12:51 UTC
135183aac06e727cfa33348dadde89e782ecfb69
1 file changed
+3
repo/fsrepo/fsrepo.go
+3
@@ -400,6 +400,9 @@ func (r *FSRepo) openDatastore() error {
400
} else if r.config.Datastore.Spec == nil {
401
return fmt.Errorf("required Datastore.Spec entry missing from config file")
402
}
403
+ if r.config.Datastore.NoSync {
404
+ 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.")
405
+ }
406
407
dsc, err := AnyDatastoreConfig(r.config.Datastore.Spec)
408
if err != nil {