-
Notifications
You must be signed in to change notification settings - Fork 50
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
flux_kvs_lookup: Documentation fixes #2138
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2138 +/- ##
==========================================
- Coverage 80.45% 80.42% -0.04%
==========================================
Files 200 200
Lines 31733 31733
==========================================
- Hits 25531 25520 -11
- Misses 6202 6213 +11
|
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.
Looks good, thanks for the cleanup! I left a couple of minor review comments.
doc/man3/flux_kvs_lookup.adoc
Outdated
@@ -151,6 +152,11 @@ changed. Unlike FLUX_KVS_WATCH_UNIQ, the key being watched need not | |||
be mentioned in a transaction. This may occur under several | |||
scenarios, such as a parent directory being altered. | |||
|
|||
FLUX_KVS_WAITCREATE:: | |||
If a KVS key does not exist, wait for it to exist before returning. | |||
This flag may be specified along with FLUX_KVS_WATCH. The lookup can |
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.
Should this say "with or without FLUX_KVS_WATCH"?
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.
I see, that would probably be clearer.
doc/man3/flux_kvs_lookup.adoc
Outdated
@@ -96,8 +96,7 @@ lookup. | |||
|
|||
`flux_kvs_lookup_cancel()` cancels a stream of lookup responses | |||
requested with FLUX_KVS_WATCH or a waiting lookup response with | |||
FLUX_KVS_WAITCREATE (see below). The future will be fulfilled with an | |||
ENODATA error once the cancel request is received and processed. | |||
FLUX_KVS_WAITCREATE. See `FLAGS` below for additional information. |
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.
FLAGS as a section heading should not be rendered monospace so the backticks are prob not the right choice. I looked at other man pages and when we reference sections, we have just listed the bare section name in caps.
Re-organize some text from flux_kvs_lookup_cancel() into FLAGS area, so it is more clear how to use it and avoid matchtag leaks. Fixes flux-framework#2012
re-pushed with fixes |
Thanks! |
Per #2012 , add
FLUX_KVS_WAITCREATE
, reorganized & added some text to make it more clear howflux_kvs_lookup_cancel()
should be used.