Skip to content
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

Merged
merged 1 commit into from
May 31, 2018

Conversation

eginez
Copy link
Contributor

@eginez eginez commented May 26, 2018

#3799

@@ -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.")
Copy link
Member

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 "

@whyrusleeping
Copy link
Member

Thanks for getting to the root of the problem :)

@eginez eginez changed the title Warning when NoSync setting is set as it is does not turn syncing off… Warning when NoSync setting is set as it does not turn syncing off… May 28, 2018
@eginez eginez force-pushed the warningOnSync branch 2 times, most recently from 7ece438 to bc1a0d8 Compare May 28, 2018 19:02
…pfs#3799

License: MIT
Signed-off-by: Esteban Ginez <eginez@gmail.com>
@eginez
Copy link
Contributor Author

eginez commented May 31, 2018

Hey @whyrusleeping I think this should be ready to be merged

@whyrusleeping whyrusleeping merged commit e235d02 into ipfs:master May 31, 2018
@whyrusleeping
Copy link
Member

Thanks for the ping! and the PR!

@eginez eginez deleted the warningOnSync branch May 31, 2018 05:48
@eginez
Copy link
Contributor Author

eginez commented May 31, 2018

no problem

@ghost
Copy link

ghost commented Jul 6, 2018

Do I understood the linked issue #3799 right, we ignore Datastore.NoSync?

@eginez
Copy link
Contributor Author

eginez commented Jul 9, 2018

That's correct Datastore.NoSync is ignored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants