-
Notifications
You must be signed in to change notification settings - Fork 51
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
kvs: refactor kvs cache to handle raw data as "primary" data #1246
Merged
Merged
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
53fe60e
modules/kvs/cache: Remove type parameter
chu11 66b864c
modules/kvs/cache: Rename internal variable
chu11 eaa151e
modules/kvs/cache: Refactor data store/free
chu11 1c97de0
modules/kvs/cache: Code re-org
chu11 a5e0358
modules/kvs/test: Remove duplicate cache tests
chu11 d9b2547
modules/kvs: Refactor cache API
chu11 25d6f58
modules/kvs/lookup: Update for KVS cache changes
chu11 2b258aa
modules/kvs/commit: Update for KVS cache changes
chu11 6c9fbce
modules/kvs: Update main kvs for cache changes
chu11 a905d9c
t/kvs: Adjust kvs tests for cache changes
chu11 7dcee34
modules/kvs: Remove cache_entry_clear_data()
chu11 f312169
modules/kvs: Remove unused/rarely used functions
chu11 b8b8c87
modules/kvs/cache: Set EINVAL in several functions
chu11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
suggestion: rename to
valid
and use same declaration style asdirty
(either bool or bitfield is fine with me).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.
agreed that this should be consistent, however I'll make a new issue and clean up in another PR. Some functions (such as
cache_entry_clear_dirty()
) return the current setting of the dirty bit as a 1 or 0. This should be a bool, not a 1 or 0. It'll be a bit more cleanup than I'd like in this PR.