Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Sep 20, 2023
1 parent 51d893e commit ff5018c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vm/mvhashmap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ impl<K: Hash + Clone + Eq, V> MVHashMap<K, V> {
/// Mark an entry from transaction 'txn_idx' at access path 'key' as an estimated write
/// (for future incarnation). Will panic if the entry is not in the data-structure.
pub fn mark_estimate(&self, key: &K, txn_idx: TxnIndex) {
println!("XXX FIXME YSG mark_estimate");
let map = self.data.get(key).expect("Path must exist");
map.get(&txn_idx)
.expect("Entry by txn must exist")
Expand All @@ -117,6 +118,7 @@ impl<K: Hash + Clone + Eq, V> MVHashMap<K, V> {
let flag = write_cell.flag();

if flag == FLAG_ESTIMATE {
println!("XXX FIXME YSG Found a dependency.");
// Found a dependency.
Err(Some(*idx))
} else {
Expand Down

0 comments on commit ff5018c

Please sign in to comment.