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
0ed0dc3c
Commit
0ed0dc3c
authored
Jun 18, 2018
by
antirez
Browse files
Fix incrDecrCommand() to create shared objects when needed.
See #5011.
parent
bd92389c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_string.c
View file @
0ed0dc3c
...
...
@@ -361,7 +361,7 @@ void incrDecrCommand(client *c, long long incr) {
new
=
o
;
o
->
ptr
=
(
void
*
)((
long
)
value
);
}
else
{
new
=
createStringObjectFromLongLong
(
value
);
new
=
createStringObjectFromLongLong
ForValue
(
value
);
if
(
o
)
{
dbOverwrite
(
c
->
db
,
c
->
argv
[
1
],
new
);
}
else
{
...
...
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