Callback used by emptyDb() while flushing away old data to load * the new dataset received by the master. */
| 2327 | /* Callback used by emptyDb() while flushing away old data to load |
| 2328 | * the new dataset received by the master. */ |
| 2329 | void replicationEmptyDbCallback(void *privdata) { |
| 2330 | UNUSED(privdata); |
| 2331 | listIter li; |
| 2332 | listNode *ln; |
| 2333 | listRewind(g_pserver->masters, &li); |
| 2334 | while ((ln = listNext(&li))) |
| 2335 | { |
| 2336 | replicationSendNewlineToMaster((redisMaster*)listNodeValue(ln)); |
| 2337 | } |
| 2338 | } |
| 2339 | |
| 2340 | /* Once we have a link with the master and the synchronization was |
| 2341 | * performed, this function materializes the master client we store |
nothing calls this directly
no test coverage detected