Skip to content

Commit

Permalink
added destructor in MontageHashTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Haosen Wen committed Jun 3, 2022
1 parent 571b4cf commit f2ad23f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/rideables/MontageHashTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ class MontageHashTable : public RMap<K,V>, public Recoverable{
}
};

~MontageHashTable() {
recover_mode(); // PDELETE --> noop
// clear transient structures.
clear();
online_mode(); // re-enable PDELETE.
}

void init_thread(GlobalTestConfig* gtc, LocalTestConfig* ltc){
Recoverable::init_thread(gtc, ltc);
}
Expand Down

0 comments on commit f2ad23f

Please sign in to comment.