forked from Deuxfleurs/garage
Less output
This commit is contained in:
parent
ea75564851
commit
a54f3158f1
1 changed files with 18 additions and 14 deletions
|
@ -433,13 +433,15 @@ where
|
||||||
if let TableRPC::<F>::SyncRPC(SyncRPC::Difference(mut diff_ranges, diff_items)) =
|
if let TableRPC::<F>::SyncRPC(SyncRPC::Difference(mut diff_ranges, diff_items)) =
|
||||||
rpc_resp
|
rpc_resp
|
||||||
{
|
{
|
||||||
eprintln!(
|
if diff_ranges.len() > 0 || diff_items.len() > 0 {
|
||||||
"({}) Sync with {:?}: difference {} ranges, {} items",
|
eprintln!(
|
||||||
self.table.name,
|
"({}) Sync with {:?}: difference {} ranges, {} items",
|
||||||
who,
|
self.table.name,
|
||||||
diff_ranges.len(),
|
who,
|
||||||
diff_items.len()
|
diff_ranges.len(),
|
||||||
);
|
diff_items.len()
|
||||||
|
);
|
||||||
|
}
|
||||||
let mut items_to_send = vec![];
|
let mut items_to_send = vec![];
|
||||||
for differing in diff_ranges.drain(..) {
|
for differing in diff_ranges.drain(..) {
|
||||||
if differing.level == 0 {
|
if differing.level == 0 {
|
||||||
|
@ -583,13 +585,15 @@ where
|
||||||
.iter()
|
.iter()
|
||||||
.map(|x| x.children.len())
|
.map(|x| x.children.len())
|
||||||
.fold(0, |x, y| x + y);
|
.fold(0, |x, y| x + y);
|
||||||
eprintln!(
|
if ret_ranges.len() > 0 || ret_items.len() > 0 {
|
||||||
"({}) Checksum comparison RPC: {} different + {} items for {} received",
|
eprintln!(
|
||||||
self.table.name,
|
"({}) Checksum comparison RPC: {} different + {} items for {} received",
|
||||||
ret_ranges.len(),
|
self.table.name,
|
||||||
ret_items.len(),
|
ret_ranges.len(),
|
||||||
n_checksums
|
ret_items.len(),
|
||||||
);
|
n_checksums
|
||||||
|
);
|
||||||
|
}
|
||||||
Ok(SyncRPC::Difference(ret_ranges, ret_items))
|
Ok(SyncRPC::Difference(ret_ranges, ret_items))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue