The state_cb is called immediately after raft's state changes, while the
monitor_cb was polling every loop iteration. This led e.g. to bugs where
raft was assuming no longer being the leader while dqlite's state was not
properly reflecting that.
Fixes #541 , also please refer to that issue for the problem description. Issue observed was similar as in #355.
Relies on functionality introduced by https://github.com/canonical/raft/pull/488.
The state_cb is called immediately after raft's state changes, while the monitor_cb was polling every loop iteration. This led e.g. to bugs where raft was assuming no longer being the leader while dqlite's state was not properly reflecting that.
Fixes #541 , also please refer to that issue for the problem description. Issue observed was similar as in #355. Relies on functionality introduced by https://github.com/canonical/raft/pull/488.