error and exit on replication level mismatch
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Trinity Pointard 2021-06-02 13:12:36 +02:00
parent e6cfb47be2
commit 13bd3138cb

View file

@ -545,9 +545,10 @@ impl System {
} }
if self.replication_factor < max_replication_factor { if self.replication_factor < max_replication_factor {
warn!("Some node have a higher replication factor ({}) than this one ({}). This is not supported and might lead to bugs", error!("Some node have a higher replication factor ({}) than this one ({}). This is not supported and might lead to bugs",
max_replication_factor, max_replication_factor,
self.replication_factor); self.replication_factor);
std::process::exit(1);
} }
if has_changed { if has_changed {
status.recalculate_hash(); status.recalculate_hash();