system: add todo wrt new layout

This commit is contained in:
Alex 2023-11-14 13:36:58 +01:00
parent 83a11374ca
commit 866196750f
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -417,6 +417,9 @@ impl System {
}
pub fn health(&self) -> ClusterHealth {
// TODO: adapt this function to take into account layout history
// when estimating cluster health, and not just use current layout
let quorum = self.replication_mode.write_quorum();
let replication_factor = self.replication_factor;
@ -429,7 +432,6 @@ impl System {
let layout = self.cluster_layout(); // acquires a rwlock
// TODO: not only layout.current()
let storage_nodes = layout
.current()
.roles