fix: used to configure replicasets without masters sometimes
Summary
Fixes a bug in generation of vshard configuration, which sometimes resulted in replicasets being declared without masters. This could happen for example if a number of instances are booting at the same time. The solution is to not add to the config instances for which the replicaset info is not yet initialized in _pico_replicaset.
Close #272 (closed)
Ensure that
-
New code is covered by tests -
API is documented -
Changelog is up to date -
(if Lua API changed) Lua API version is bumped inluamod.rs
-
(if necessary) A follow-up doc issue is created in picodata/docs and linked here