Clear the migrating / importing state for all the slots. * This is useful at initialization and when turning a master into slave. */
| 3978 | /* Clear the migrating / importing state for all the slots. |
| 3979 | * This is useful at initialization and when turning a master into slave. */ |
| 3980 | void clusterCloseAllSlots(void) { |
| 3981 | memset(g_pserver->cluster->migrating_slots_to,0, |
| 3982 | sizeof(g_pserver->cluster->migrating_slots_to)); |
| 3983 | memset(g_pserver->cluster->importing_slots_from,0, |
| 3984 | sizeof(g_pserver->cluster->importing_slots_from)); |
| 3985 | } |
| 3986 | |
| 3987 | /* ----------------------------------------------------------------------------- |
| 3988 | * Cluster state evaluation function |
no outgoing calls
no test coverage detected