de-trace this function, new blob is not a dup

This commit is contained in:
Rob Walker 2018-08-01 08:51:32 -07:00
parent 2ece27ee3a
commit 05153e4884
1 changed files with 2 additions and 16 deletions

View File

@ -355,24 +355,10 @@ fn process_blob(
c_or_d: &str,
) -> bool {
if let Some(old) = mem::replace(window_slot, Some(blob)) {
if old.read().unwrap().get_index().unwrap() == pix {
trace!(
"{:x}: duplicate {} blob at index {:}",
debug_id,
c_or_d,
pix
);
}
trace!(
"{:x}: recycling {} blob at index {:}",
debug_id,
c_or_d,
pix
);
let is_dup = old.read().unwrap().get_index().unwrap() == pix;
recycler.recycle(old);
true
is_dup
} else {
trace!("{:x}: empty {} window slot {:}", debug_id, c_or_d, pix);
false
}
}