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

mfs: make sure to flush after mv and chcid #5936

Merged
merged 1 commit into from
Jan 22, 2019
Merged

mfs: make sure to flush after mv and chcid #5936

merged 1 commit into from
Jan 22, 2019

Conversation

Stebalien
Copy link
Member

We need to call FlushPath as Flush doesn't call WaitPub internally. The correct fix is to rework MFS such that Flush actually flushes but that's a larger project.

Fixes #5925 (comment) although I'm not sure what changed. In a followup PR, once ipfs/go-mfs#58 is merged, we can fix go-ipfs to run the teardown function before it cancels the context.

@ghost ghost assigned Stebalien Jan 22, 2019
@ghost ghost added the status/in-progress In progress label Jan 22, 2019
return err
}
if flush {
return mfs.FlushPath(nd.FilesRoot, "/")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does, in fact, work. We don't need to care about the individual files.

We need to call `FlushPath` as `Flush` doesn't call `WaitPub` internally. The
correct fix is to rework MFS such that Flush actually flushes but that's a
larger project.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
Copy link
Member

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my limited knowledge about mfs, looks good

@Stebalien Stebalien merged commit 2c2d2e2 into master Jan 22, 2019
@ghost ghost removed the status/in-progress In progress label Jan 22, 2019
@hacdias hacdias deleted the fix/mfs-flush branch May 9, 2023 10:56
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