-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning when NoSync setting is set as it does not turn syncing off… #5036
Conversation
repo/fsrepo/fsrepo.go
Outdated
@@ -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 no longer effective. Set 'sync' to false. See https://github.com/ipfs/go-ipfs/blob/master/docs/datastores.md#flatfs.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm... I think the wording might be clearer as:
"NoSync is now deprecated in favor of datastore specific settings. If you want to disable fsync on flatfs 'sync' to false, See "
Thanks for getting to the root of the problem :) |
7ece438
to
bc1a0d8
Compare
…pfs#3799 License: MIT Signed-off-by: Esteban Ginez <eginez@gmail.com>
Hey @whyrusleeping I think this should be ready to be merged |
Thanks for the ping! and the PR! |
no problem |
Do I understood the linked issue #3799 right, we ignore Datastore.NoSync? |
That's correct Datastore.NoSync is ignored |
… #3799