Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
572abee6
Unverified
Commit
572abee6
authored
Sep 20, 2021
by
Wen Hui
Committed by
GitHub
Sep 20, 2021
Browse files
Add const for relevant method parameters in redis-benchmark (#9516)
parent
67fcbdf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
572abee6
...
@@ -971,7 +971,7 @@ static void startBenchmarkThreads() {
...
@@ -971,7 +971,7 @@ static void startBenchmarkThreads() {
pthread_join
(
config
.
threads
[
i
]
->
thread
,
NULL
);
pthread_join
(
config
.
threads
[
i
]
->
thread
,
NULL
);
}
}
static
void
benchmark
(
char
*
title
,
char
*
cmd
,
int
len
)
{
static
void
benchmark
(
const
char
*
title
,
char
*
cmd
,
int
len
)
{
client
c
;
client
c
;
config
.
title
=
title
;
config
.
title
=
title
;
...
@@ -1680,7 +1680,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
...
@@ -1680,7 +1680,7 @@ int showThroughput(struct aeEventLoop *eventLoop, long long id, void *clientData
/* Return true if the named test was selected using the -t command line
/* Return true if the named test was selected using the -t command line
* switch, or if all the tests are selected (no -t passed by user). */
* switch, or if all the tests are selected (no -t passed by user). */
int
test_is_selected
(
char
*
name
)
{
int
test_is_selected
(
const
char
*
name
)
{
char
buf
[
256
];
char
buf
[
256
];
int
l
=
strlen
(
name
);
int
l
=
strlen
(
name
);
...
...
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