Change the current instance replication ID with a new, random one. * This will prevent successful PSYNCs between this master and other * slaves, so the command should be called when something happens that * alters the current story of the dataset. */
| 1382 | * slaves, so the command should be called when something happens that |
| 1383 | * alters the current story of the dataset. */ |
| 1384 | void changeReplicationId(void) { |
| 1385 | getRandomHexChars(server.replid,CONFIG_RUN_ID_SIZE); |
| 1386 | server.replid[CONFIG_RUN_ID_SIZE] = '\0'; |
| 1387 | } |
| 1388 | |
| 1389 | /* Clear (invalidate) the secondary replication ID. This happens, for |
| 1390 | * example, after a full resynchronization, when we start a new replication |
no test coverage detected