We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d4f10b commit 2a65ce5Copy full SHA for 2a65ce5
2 files changed
txn/mvcc_storage.cc
@@ -15,7 +15,11 @@ void MVCCStorage::InitStorage() {
15
MVCCStorage::~MVCCStorage() {
16
for (unordered_map<Key, deque<Version*>*>::iterator it = mvcc_data_.begin();
17
it != mvcc_data_.end(); ++it) {
18
- delete it->second;
+ auto version_list = it->second;
19
+ for (auto version : *version_list) {
20
+ delete version;
21
+ }
22
+ delete version_list;
23
}
24
25
mvcc_data_.clear();
txn/txn_processor_test.cc
@@ -92,6 +92,10 @@ void Benchmark(const vector<LoadGen *> &lg)
92
mode <= MVCC;
93
mode = static_cast<CCMode>(mode + 1))
94
{
95
+ // FILTER modes for testing
96
+ // if (mode != SERIAL && mode != MVCC) {
97
+ // continue;
98
+ // }
99
// Print out mode name.
100
cout << ModeToString(mode) << flush;
101
0 commit comments