Commit c5a8c8e9 authored by antirez's avatar antirez
Browse files

Fixed issues introduced during last merge.

parent 4363fa1d
...@@ -492,7 +492,7 @@ int startBgsaveForReplication(int mincapa) { ...@@ -492,7 +492,7 @@ int startBgsaveForReplication(int mincapa) {
int retval; int retval;
int socket_target = server.repl_diskless_sync && (mincapa & SLAVE_CAPA_EOF); int socket_target = server.repl_diskless_sync && (mincapa & SLAVE_CAPA_EOF);
redisLog(REIDS_NOTICE,"Starting BGSAVE for SYNC with target: %s", redisLog(REDIS_NOTICE,"Starting BGSAVE for SYNC with target: %s",
socket_target ? "slaves sockets" : "disk"); socket_target ? "slaves sockets" : "disk");
if (socket_target) if (socket_target)
...@@ -619,7 +619,7 @@ void syncCommand(redisClient *c) { ...@@ -619,7 +619,7 @@ void syncCommand(redisClient *c) {
/* Target is disk (or the slave is not capable of supporting /* Target is disk (or the slave is not capable of supporting
* diskless replication) and we don't have a BGSAVE in progress, * diskless replication) and we don't have a BGSAVE in progress,
* let's start one. */ * let's start one. */
if (startBgsaveForReplication(c->slave_capa) != C_OK) { if (startBgsaveForReplication(c->slave_capa) != REDIS_OK) {
redisLog(REDIS_NOTICE,"Replication failed, can't BGSAVE"); redisLog(REDIS_NOTICE,"Replication failed, can't BGSAVE");
addReplyError(c,"Unable to perform background save"); addReplyError(c,"Unable to perform background save");
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment