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 & kvs-watch: misc cleanup & bug fixes #1861
Conversation
Add an assert to handle a fallthrough path that should be impossible.
Fix corner case in which call to helper function could overwrite the desired errno to return.
Remove unnecessary 'else' clause, just fallthrough to rest of code.
Fix a corner case when a namespace being monitored is removed, by assigning the ENOTSUP errnum to a "fatal error" variable. The ENOTSUP from a removed namespace event is not subject to FLUX_KVS_WATCH_WAITCREATE, this one truly indicates the namespace is gone.
one build had a valgrind error. Maybe #1641? but seems to run through job.c.
|
just saw there were some ';;' typos in some code, so just added that patch on top. |
Codecov Report
@@ Coverage Diff @@
## master #1861 +/- ##
==========================================
+ Coverage 79.89% 79.89% +<.01%
==========================================
Files 196 196
Lines 35222 35228 +6
==========================================
+ Hits 28141 28147 +6
Misses 7081 7081
|
b43c6a1
to
edc1082
Compare
oh wait, i just realized one of the bug fixes isn't necessary ... ugh. let me remove it. Edit: What I realized was that watcher_destroy() destroys all futures that are connected to the watcher, so it's not possible for the lookup continuation to be called. |
edc1082
to
306e661
Compare
LGTM! Thanks! |
while working on #1838, misc cleanups and bug fixes.