reduce anti-entropy interval for fullcopy tables

This commit is contained in:
Alex Auvolat
2025-03-25 13:11:11 +01:00
parent 9dcc5232a6
commit 8ba6454e21
4 changed files with 16 additions and 4 deletions
+1 -4
View File
@@ -27,9 +27,6 @@ use crate::merkle::*;
use crate::replication::*;
use crate::*;
// Do anti-entropy every 10 minutes
const ANTI_ENTROPY_INTERVAL: Duration = Duration::from_secs(10 * 60);
pub struct TableSyncer<F: TableSchema, R: TableReplication> {
system: Arc<System>,
data: Arc<TableData<F, R>>,
@@ -514,7 +511,7 @@ impl<F: TableSchema, R: TableReplication> SyncWorker<F, R> {
partitions.partitions.shuffle(&mut thread_rng());
self.todo = Some(partitions);
self.next_full_sync = Instant::now() + ANTI_ENTROPY_INTERVAL;
self.next_full_sync = Instant::now() + R::ANTI_ENTROPY_INTERVAL;
}
}