Returns 1 if the given replication state is a handshake state, * 0 otherwise. */
| 1419 | /* Returns 1 if the given replication state is a handshake state, |
| 1420 | * 0 otherwise. */ |
| 1421 | int slaveIsInHandshakeState(void) { |
| 1422 | return server.repl_state >= REPL_STATE_RECEIVE_PING_REPLY && |
| 1423 | server.repl_state <= REPL_STATE_RECEIVE_PSYNC_REPLY; |
| 1424 | } |
| 1425 | |
| 1426 | /* Avoid the master to detect the slave is timing out while loading the |
| 1427 | * RDB file in initial synchronization. We send a single newline character |
no outgoing calls
no test coverage detected