Clear (invalidate) the secondary replication ID. This happens, for * example, after a full resynchronization, when we start a new replication * history. */
| 1390 | * example, after a full resynchronization, when we start a new replication |
| 1391 | * history. */ |
| 1392 | void clearReplicationId2(void) { |
| 1393 | memset(server.replid2,'0',sizeof(server.replid)); |
| 1394 | server.replid2[CONFIG_RUN_ID_SIZE] = '\0'; |
| 1395 | server.second_replid_offset = -1; |
| 1396 | } |
| 1397 | |
| 1398 | /* Use the current replication ID / offset as secondary replication |
| 1399 | * ID, and change the current one in order to start a new history. |
no test coverage detected