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
a3169341
Commit
a3169341
authored
Jul 22, 2013
by
antirez
Browse files
Fix replicationFeedSlaves() to use sdsEncodedObject() macro.
parent
894eba07
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
a3169341
...
@@ -200,10 +200,11 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
...
@@ -200,10 +200,11 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
char
*
objptr
;
char
*
objptr
;
if
(
argv
[
j
]
->
encoding
!=
REDIS_ENCODING_RAW
&&
if
(
argv
[
j
]
->
encoding
!=
REDIS_ENCODING_RAW
&&
argv
[
j
]
->
encoding
!=
REDIS_ENCODING_INT
)
{
argv
[
j
]
->
encoding
!=
REDIS_ENCODING_INT
&&
argv
[
j
]
->
encoding
!=
REDIS_ENCODING_EMBSTR
)
{
redisPanic
(
"Unexpected encoding"
);
redisPanic
(
"Unexpected encoding"
);
}
}
if
(
argv
[
j
]
->
encoding
==
REDIS_ENCODING_RAW
)
{
if
(
sdsEncodedObject
(
argv
[
j
])
)
{
objlen
=
sdslen
(
argv
[
j
]
->
ptr
);
objlen
=
sdslen
(
argv
[
j
]
->
ptr
);
objptr
=
argv
[
j
]
->
ptr
;
objptr
=
argv
[
j
]
->
ptr
;
}
else
{
}
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