Commit a0fea73d authored by Ranadeep Biswas's avatar Ranadeep Biswas
Browse files

Fix serialization code

parent dc0c94a0
......@@ -337,9 +337,9 @@ impl Chains {
last_wr.remove(x);
}
for (&x, &rf_txn) in rd_info.iter() {
let mut s = HashSet::new();
s.insert(cand);
last_wr.insert(x, (rf_txn, s));
let ent = last_wr.entry(x).or_insert_with(|| (rf_txn, HashSet::new()));
assert_eq!(ent.0, rf_txn);
ent.1.insert(cand);
}
if let Some(it) = self.vis_closure.forward_edge.get(&cand) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment