Skip to content

Commit 49ce438

Browse files
committed
kvs: correct transaction-merge option parsing
Problem: The transaction-merge option was not parsed correctly due to an invalid index. This was never uncovered due to previous invalid input handling. Correct transaction-merge option parsing.
1 parent 74f43ac commit 49ce438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/kvs/kvs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2855,7 +2855,7 @@ static int process_args (struct kvs_ctx *ctx, int ac, char **av)
28552855
if (strstarts (av[i], "transaction-merge=")) {
28562856
char *endptr;
28572857
errno = 0;
2858-
ctx->transaction_merge = strtoul (av[i]+13, &endptr, 10);
2858+
ctx->transaction_merge = strtoul (av[i]+18, &endptr, 10);
28592859
if (errno != 0 || *endptr != '\0') {
28602860
errno = EINVAL;
28612861
return -1;

0 commit comments

Comments
 (0)