This just set a flag so that we broadcast a REPLCONF GETACK command * to all the slaves in the beforeSleep() function. Note that this way * we "group" all the clients that want to wait for synchronous replication * in a given event loop iteration, and send a single GETACK for them all. */
| 4627 | * we "group" all the clients that want to wait for synchronous replication |
| 4628 | * in a given event loop iteration, and send a single GETACK for them all. */ |
| 4629 | void replicationRequestAckFromSlaves(void) { |
| 4630 | g_pserver->get_ack_from_slaves = 1; |
| 4631 | } |
| 4632 | |
| 4633 | /* Return the number of slaves that already acknowledged the specified |
| 4634 | * replication offset. */ |