Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. replicationCron中
  2.  
  3. /* First, send PING according to ping_slave_period. */
  4. if ((replication_cron_loops % server.repl_ping_slave_period) == 0 &&
  5. listLength(server.slaves))
  6. {
  7. ping_argv[0] = createStringObject("PING",4);
  8. replicationFeedSlaves(server.slaves, server.slaveseldb,
  9. ping_argv, 1);
  10. decrRefCount(ping_argv[0]);
  11. }
  12.  
  13. 貌似没有条件,会固定 的ping slave
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement