Clear (invalidate) the secondary replication ID. This happens, for * example, after a full resynchronization, when we start a new replication * history. */
| 2274 | * example, after a full resynchronization, when we start a new replication |
| 2275 | * history. */ |
| 2276 | void clearReplicationId2(void) { |
| 2277 | memset(g_pserver->replid2,'0',sizeof(g_pserver->replid)); |
| 2278 | g_pserver->replid2[CONFIG_RUN_ID_SIZE] = '\0'; |
| 2279 | g_pserver->second_replid_offset = -1; |
| 2280 | } |
| 2281 | |
| 2282 | /* Use the current replication ID / offset as secondary replication |
| 2283 | * ID, and change the current one in order to start a new history. |
no outgoing calls
no test coverage detected