-
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
kvs: Add src and dst namespace to kvs copy & move #1936
Conversation
Hmmm, hit a failure in t2000-wreck-env
it seems all tests passed, but I guess the broker took to long to shut down and it was killed? |
Shouldn't need that one since lookup starts from a specific hash, not from the root of a namespace. |
I went ahead and restarted that builder. The failure seems unlikely to be related to this PR. |
Doubt that this has anything to do with these changes. Was gonna restart the builder, but it seems someone beet me to it :-) |
lol, what timing. |
I win! |
In several locations, a bitwise OR (|) was accidentally used instead of a logical OR (||).
Create new wrapper function flux_kvs_lookup_ns() to handle lookup with a specific namespace.
Create new wrapper function flux_kvs_commit_ns() to handle commit with a specific namespace.
Add headers to access flux_kvs_lookup_ns() and flux_kvs_commit_ns().
Have flux_kvs_copy() and flux_kvs_move() take namespace parameters for the source & destination keys. This allows copying and moving between different namespaces without need for using the "ns:" prefix.
Add --src-namespace and --dst-namespace options to copy and move commands. This allows users to specify alternate namespaces without using the ns prefix mechanism.
78a70e8
to
df8a1c3
Compare
rebased |
Codecov Report
@@ Coverage Diff @@
## master #1936 +/- ##
==========================================
+ Coverage 80.05% 80.07% +0.01%
==========================================
Files 195 195
Lines 35059 35078 +19
==========================================
+ Hits 28065 28087 +22
+ Misses 6994 6991 -3
|
Thanks! |
first part of issue #1860. I've elected to make the new functions
flux_kvs_commit_ns()
andflux_kvs_lookup_ns()
private. The API should have more of these functions (flux_kvs_fence_ns()
,flux_kvs_lookupat_ns()
, kvsdir, etc.) and tests, but I am leaving that work for another day.