Clear the migrating / importing state for all the slots. * This is useful at initialization and when turning a master into slave. */
| 3919 | /* Clear the migrating / importing state for all the slots. |
| 3920 | * This is useful at initialization and when turning a master into slave. */ |
| 3921 | void clusterCloseAllSlots(void) { |
| 3922 | memset(server.cluster->migrating_slots_to,0, |
| 3923 | sizeof(server.cluster->migrating_slots_to)); |
| 3924 | memset(server.cluster->importing_slots_from,0, |
| 3925 | sizeof(server.cluster->importing_slots_from)); |
| 3926 | } |
| 3927 | |
| 3928 | /* ----------------------------------------------------------------------------- |
| 3929 | * Cluster state evaluation function |
no test coverage detected