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
a2583466
Commit
a2583466
authored
Jun 11, 2014
by
zionwu
Committed by
Matt Stancliff
Sep 29, 2014
Browse files
Fix incorrect comments
error != success; and 0 != number of bytes written Closes #1806
parent
0cb87481
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
a2583466
...
@@ -593,7 +593,7 @@ void freeFakeClient(struct redisClient *c) {
...
@@ -593,7 +593,7 @@ void freeFakeClient(struct redisClient *c) {
zfree
(
c
);
zfree
(
c
);
}
}
/* Replay the append log file. On
error
REDIS_OK is returned. On non fatal
/* Replay the append log file. On
success
REDIS_OK is returned. On non fatal
* error (the append only file is zero-length) REDIS_ERR is returned. On
* error (the append only file is zero-length) REDIS_ERR is returned. On
* fatal error an error message is logged and the program exists. */
* fatal error an error message is logged and the program exists. */
int
loadAppendOnlyFile
(
char
*
filename
)
{
int
loadAppendOnlyFile
(
char
*
filename
)
{
...
...
src/rdb.c
View file @
a2583466
...
@@ -475,7 +475,7 @@ int rdbLoadObjectType(rio *rdb) {
...
@@ -475,7 +475,7 @@ int rdbLoadObjectType(rio *rdb) {
return
type
;
return
type
;
}
}
/* Save a Redis object. Returns -1 on error,
0
on success. */
/* Save a Redis object. Returns -1 on error,
number of bytes written
on success. */
int
rdbSaveObject
(
rio
*
rdb
,
robj
*
o
)
{
int
rdbSaveObject
(
rio
*
rdb
,
robj
*
o
)
{
int
n
,
nwritten
=
0
;
int
n
,
nwritten
=
0
;
...
...
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