Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
sds-keyval
Commits
48e93ac4
Commit
48e93ac4
authored
Aug 01, 2019
by
Matthieu Dorier
Browse files
corrected bug related to 0-sized keys and value buffers in list_keyvals
parent
062531fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sdskv-client.c
View file @
48e93ac4
...
...
@@ -1274,23 +1274,27 @@ int sdskv_list_keyvals_with_prefix(sdskv_provider_handle_t provider,
}
/* create bulk handle to expose where the keys should be placed */
hret
=
margo_bulk_create
(
provider
->
client
->
mid
,
if
(
keys
)
{
hret
=
margo_bulk_create
(
provider
->
client
->
mid
,
*
max_keys
,
keys
,
ksizes
,
HG_BULK_WRITE_ONLY
,
&
in
.
keys_bulk_handle
);
if
(
hret
!=
HG_SUCCESS
)
{
ret
=
SDSKV_ERR_MERCURY
;
goto
finish
;
if
(
hret
!=
HG_SUCCESS
)
{
ret
=
SDSKV_ERR_MERCURY
;
goto
finish
;
}
}
/* create bulk handle to expose where the keys should be placed */
hret
=
margo_bulk_create
(
provider
->
client
->
mid
,
/* create bulk handle to expose where the values should be placed */
if
(
values
)
{
hret
=
margo_bulk_create
(
provider
->
client
->
mid
,
*
max_keys
,
values
,
vsizes
,
HG_BULK_WRITE_ONLY
,
&
in
.
vals_bulk_handle
);
if
(
hret
!=
HG_SUCCESS
)
{
ret
=
SDSKV_ERR_MERCURY
;
goto
finish
;
if
(
hret
!=
HG_SUCCESS
)
{
ret
=
SDSKV_ERR_MERCURY
;
goto
finish
;
}
}
/* create handle */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment