Lines Matching refs:masterhost
570 if (server.masterhost && server.repl_state != REPL_STATE_CONNECTED) { in syncCommand()
760 if (server.masterhost && server.master) replicationSendAck(); in replconfCommand()
1658 server.masterhost,server.masterport,NET_FIRST_BIND_ADDR); in connectWithMaster()
1727 sdsfree(server.masterhost); in replicationSetMaster()
1728 server.masterhost = sdsnew(ip); in replicationSetMaster()
1743 if (server.masterhost == NULL) return; /* Nothing to do. */ in replicationUnsetMaster()
1744 sdsfree(server.masterhost); in replicationUnsetMaster()
1745 server.masterhost = NULL; in replicationUnsetMaster()
1785 if (server.masterhost) { in slaveofCommand()
1799 if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr) in slaveofCommand()
1810 server.masterhost, server.masterport, client); in slaveofCommand()
1820 if (server.masterhost == NULL) { in roleCommand()
1853 addReplyBulkCString(c,server.masterhost); in roleCommand()
2218 if (server.masterhost != NULL) { in replicationGetSlaveOffset()
2240 if (server.masterhost && in replicationCron()
2250 if (server.masterhost && server.repl_state == REPL_STATE_TRANSFER && in replicationCron()
2258 if (server.masterhost && server.repl_state == REPL_STATE_CONNECTED && in replicationCron()
2268 server.masterhost, server.masterport); in replicationCron()
2277 if (server.masterhost && server.master && in replicationCron()