Skip to content

Mv sst fadvise#88

Merged
matthewvon merged 9 commits intomasterfrom
mv-sst-fadvise
Jul 22, 2013
Merged

Mv sst fadvise#88
matthewvon merged 9 commits intomasterfrom
mv-sst-fadvise

Conversation

@matthewvon
Copy link
Contributor

This branch makes the posix_fadvise() calls more effective and fixes a race condition found in the file write operations. Branch notes are here: https://github.com/basho/leveldb/wiki/mv-sst-fadvise

Choose a reason for hiding this comment

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

do you mean that this is a future TODO?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. not in this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is also a commented out posix_fadvise in env_posix.cc (line 119) that is related to this comment. There is a heavy interaction between the two that I do not have time to completely research at this time. Hence, bypassing both lines.

Choose a reason for hiding this comment

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

just double checking that you intend to call NewWritableFile from inside NewWriteOnlyFile (or at least explain why in a comment, other than "derived from NewWritableFile")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment was updated but is not reflected on this screen. See file's line-by-line diff to see new comment.

@bookshelfdave
Copy link

@matthewvon looks good, misc (non-critical) formatting issues.
+1 if you address the commend regarding O_WRONLY vs O_RDWR

matthewvon pushed a commit that referenced this pull request Jul 22, 2013
@matthewvon matthewvon merged commit 6422b67 into master Jul 22, 2013
@matthewvon matthewvon deleted the mv-sst-fadvise branch May 5, 2016 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants