Ignore/log RequestWindowIndex from self

This commit is contained in:
Michael Vines 2018-07-17 09:54:00 -07:00
parent 103584ef27
commit d882bfe65c
1 changed files with 10 additions and 1 deletions

View File

@ -1045,7 +1045,16 @@ impl Crdt {
from.debug_id(),
ix,
);
assert_ne!(from.contact_info.tvu_window, me.contact_info.tvu_window);
if from.contact_info.tvu_window == me.contact_info.tvu_window {
warn!(
"Ignored {:x}:received RequestWindowIndex from ME {:x} {} ",
me.debug_id(),
from.debug_id(),
ix,
);
inc_new_counter!("crdt-window-request-address-eq", 1);
return None;
}
Self::run_window_request(&window, &me, &from, ix, blob_recycler)
}
Err(_) => {