1
0
mirror of https://github.com/fluencelabs/redis synced 2025-03-31 14:51:04 +00:00

Fix incorrect comments

error != success; and 0 != number of bytes written

Closes 
This commit is contained in:
zionwu 2014-06-11 08:35:46 +08:00 committed by Matt Stancliff
parent 0cb874819b
commit a2583466e4
2 changed files with 2 additions and 2 deletions

@ -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) {

@ -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;