-
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
libjsc: misc cleanup #1395
libjsc: misc cleanup #1395
Conversation
kvs_watch is no longer used internally so drop comment that refers to it. The returned "jcb" parameter is now a string, so tell the user to release it with free(), not json_object_put().
Private macros to strcmp a key to a jsc attribute are probably not adding much to readability. In an effort to make the code more readable, drop these.
Nice cleanup! Just to check, I assume this is already tested with flux-sched? |
Codecov Report
@@ Coverage Diff @@
## master #1395 +/- ##
==========================================
- Coverage 78.49% 78.49% -0.01%
==========================================
Files 162 162
Lines 29801 29768 -33
==========================================
- Hits 23392 23365 -27
+ Misses 6409 6403 -6
|
Um, I haven't tested it with sched. I assumed that passing the jsc sharness test was probably good enough for this change set. I did check (with grep) that sched wasn't using the deprecated interfaces. I have been unable to get sched compiled on ubuntu 17.10 (what I currently have in a vm on my laptop) due to the default libboost version of 1.62. I need to figure out how to downgrade that package I guess... |
Yeah... The defects in some of these libboost versions are pretty unfortunate. I didn't have time to look at ways to work around it. For now, though, because JSC won't affect |
Here are a few simple cleanups for libjsc, peeled off of #1388
The main thing here is dropping the deprecated (and unused) API functions. The rest is minor.