Remove some debugging panics
@@ -1565,8 +1565,6 @@ impl Tree {
let mut parent_view = None;
let mut unsplit_parent = None;
let mut took_leftmost_branch = false;
- let mut path = vec![];
- let mut retries = vec![];
macro_rules! retry {
() => {
@@ -1575,13 +1573,11 @@ impl Tree {
line!(),
cursor
);
- retries.push(line!());
cursor = self.root.load(SeqCst);
root_pid = cursor;
parent_view = None;
unsplit_parent = None;
took_leftmost_branch = false;
- path.clear();
continue;
};
}
@@ -1593,7 +1589,6 @@ impl Tree {
}
let node_opt = self.view_for_pid(cursor, guard)?;
- path.push((cursor, node_opt.clone()));
let view = if let Some(view) = node_opt {
view
@@ -1664,17 +1659,6 @@ impl Tree {
// parent to already have a node for this lo key.
// if this is the case, we can skip the parent split
// because it's probably going to fail anyway.
- println!("looking for key {:?}", key.as_ref());
- for node_opt in path.iter() {
- println!();
- println!("node: {:?}", node_opt);
- }
- println!("retries: {:?}", retries);
- panic!(
- "trying to split node at point {:?} node: {:?}",
- view.lo.as_ref(),
- unsplit_parent.node
- );
retry!();
}
