Previously, change_membership() assumed the current membership config was
always non-empty and used the last config entry. However, uninitialized
nodes lack a membership config, leading to panics.
This commit adds checks to prevent change_membership() from panicking
Previously,
change_membership()
assumed the current membership config was always non-empty and used the last config entry. However, uninitialized nodes lack a membership config, leading to panics.This commit adds checks to prevent
change_membership()
from panickingThis change is