| 1473 | } |
| 1474 | |
| 1475 | void disconnectSlavesExcept(unsigned char *uuid) |
| 1476 | { |
| 1477 | serverAssert(GlobalLocksAcquired()); |
| 1478 | listIter li; |
| 1479 | listNode *ln; |
| 1480 | |
| 1481 | listRewind(g_pserver->slaves, &li); |
| 1482 | while ((ln = listNext(&li))) { |
| 1483 | client *c = (client*)listNodeValue(ln); |
| 1484 | if (uuid == nullptr || !FUuidEqual(c->uuid, uuid)) |
| 1485 | freeClientAsync(c); |
| 1486 | } |
| 1487 | } |
| 1488 | |
| 1489 | /* Close all the slaves connections. This is useful in chained replication |
| 1490 | * when we resync with our own master and want to force all our slaves to |
no test coverage detected