Lines Matching refs:masterhost
185 if (server.masterhost != NULL) return; in replicationFeedSlaves()
635 if (server.masterhost && server.repl_state != REPL_STATE_CONNECTED) { in syncCommand()
834 if (server.masterhost && server.master) replicationSendAck(); in replconfCommand()
1890 server.masterhost,server.masterport,NET_FIRST_BIND_ADDR); in connectWithMaster()
1959 int was_master = server.masterhost == NULL; in replicationSetMaster()
1961 sdsfree(server.masterhost); in replicationSetMaster()
1962 server.masterhost = sdsnew(ip); in replicationSetMaster()
1981 if (server.masterhost == NULL) return; /* Nothing to do. */ in replicationUnsetMaster()
1982 sdsfree(server.masterhost); in replicationUnsetMaster()
1983 server.masterhost = NULL; in replicationUnsetMaster()
2035 if (server.masterhost) { in replicaofCommand()
2058 if (server.masterhost && !strcasecmp(server.masterhost,c->argv[1]->ptr) in replicaofCommand()
2069 server.masterhost, server.masterport, client); in replicaofCommand()
2079 if (server.masterhost == NULL) { in roleCommand()
2112 addReplyBulkCString(c,server.masterhost); in roleCommand()
2441 if (server.masterhost) { in waitCommand()
2522 if (server.masterhost != NULL) { in replicationGetSlaveOffset()
2544 if (server.masterhost && in replicationCron()
2554 if (server.masterhost && server.repl_state == REPL_STATE_TRANSFER && in replicationCron()
2562 if (server.masterhost && server.repl_state == REPL_STATE_CONNECTED && in replicationCron()
2572 server.masterhost, server.masterport); in replicationCron()
2581 if (server.masterhost && server.master && in replicationCron()
2671 server.repl_backlog && server.masterhost == NULL) in replicationCron()