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
16f92547
Commit
16f92547
authored
Oct 30, 2009
by
antirez
Browse files
first fix for append only mode
parent
44b38ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
16f92547
...
...
@@ -1660,6 +1660,7 @@ static void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv
snprintf
(
seldb
,
sizeof
(
seldb
),
"%d"
,
dictid
);
buf
=
sdscatprintf
(
buf
,
"*2
\r\n
$6
\r\n
SELECT
\r\n
$%d
\r\n
%s
\r\n
"
,
strlen
(
seldb
),
seldb
);
server
.
appendseldb
=
dictid
;
}
/* Append the actual command */
buf
=
sdscatprintf
(
buf
,
"*%d
\r\n
"
,
argc
);
...
...
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