aboutsummaryrefslogtreecommitdiff
path: root/src/table/sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/table/sync.rs')
-rw-r--r--src/table/sync.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/table/sync.rs b/src/table/sync.rs
index b5044a4e..f8ebb2f0 100644
--- a/src/table/sync.rs
+++ b/src/table/sync.rs
@@ -277,6 +277,9 @@ where
warn!("Interrupting offload as partitions seem to have changed");
break;
}
+ if nodes.len() < self.aux.replication.write_quorum(&self.aux.system) {
+ return Err(Error::Message(format!("Not offloading as we don't have a quorum of nodes to write to.")));
+ }
counter += 1;
debug!(