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
c2672a06
Commit
c2672a06
authored
Mar 30, 2012
by
antirez
Browse files
Purely aesthetic code change.
parent
f892797e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
c2672a06
...
@@ -26,8 +26,8 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
...
@@ -26,8 +26,8 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
robj
*
selectcmd
;
robj
*
selectcmd
;
if
(
dictid
>=
0
&&
dictid
<
REDIS_SHARED_SELECT_CMDS
)
{
if
(
dictid
>=
0
&&
dictid
<
REDIS_SHARED_SELECT_CMDS
)
{
incrRefCount
(
shared
.
select
[
dictid
]);
selectcmd
=
shared
.
select
[
dictid
];
selectcmd
=
shared
.
select
[
dictid
];
incrRefCount
(
selectcmd
);
}
else
{
}
else
{
selectcmd
=
createObject
(
REDIS_STRING
,
selectcmd
=
createObject
(
REDIS_STRING
,
sdscatprintf
(
sdsempty
(),
"select %d
\r\n
"
,
dictid
));
sdscatprintf
(
sdsempty
(),
"select %d
\r\n
"
,
dictid
));
...
...
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