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
daaff484
Commit
daaff484
authored
Feb 05, 2019
by
artix
Browse files
Redis Benchmark: use atomic var for liveclients in 'createClient'
parent
834809cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-benchmark.c
View file @
daaff484
...
...
@@ -658,7 +658,7 @@ static client createClient(char *cmd, size_t len, client from, int thread_id) {
if
(
config
.
idlemode
==
0
)
aeCreateFileEvent
(
el
,
c
->
context
->
fd
,
AE_WRITABLE
,
writeHandler
,
c
);
listAddNodeTail
(
config
.
clients
,
c
);
config
.
liveclients
++
;
atomicIncr
(
config
.
liveclients
,
1
)
;
return
c
;
}
...
...
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