@@ -93,7 +93,7 @@ RWType TransactionContext::GetRWType(const ItemPointer &location) {
93
93
}
94
94
95
95
void TransactionContext::RecordRead (const ItemPointer &location) {
96
- PELOTON_ASSERT (rw_set_.count (location) == 0 ||
96
+ PELOTON_ASSERT (rw_set_.find (location) == rw_set_. end () ||
97
97
(rw_set_[location] != RWType::DELETE &&
98
98
rw_set_[location] != RWType::INS_DEL));
99
99
auto rw_set_it = rw_set_.find (location);
@@ -104,14 +104,14 @@ void TransactionContext::RecordRead(const ItemPointer &location) {
104
104
}
105
105
106
106
void TransactionContext::RecordReadOwn (const ItemPointer &location) {
107
- PELOTON_ASSERT (rw_set_.count (location) == 0 ||
107
+ PELOTON_ASSERT (rw_set_.find (location) == rw_set_. end () ||
108
108
(rw_set_[location] != RWType::DELETE &&
109
109
rw_set_[location] != RWType::INS_DEL));
110
110
rw_set_[location] = RWType::READ_OWN;
111
111
}
112
112
113
113
void TransactionContext::RecordUpdate (const ItemPointer &location) {
114
- PELOTON_ASSERT (rw_set_.count (location) == 0 ||
114
+ PELOTON_ASSERT (rw_set_.find (location) == rw_set_. end () ||
115
115
(rw_set_[location] != RWType::DELETE &&
116
116
rw_set_[location] != RWType::INS_DEL));
117
117
auto rw_set_it = rw_set_.find (location);
@@ -122,12 +122,12 @@ void TransactionContext::RecordUpdate(const ItemPointer &location) {
122
122
}
123
123
124
124
void TransactionContext::RecordInsert (const ItemPointer &location) {
125
- PELOTON_ASSERT (rw_set_.count (location) == 0 );
125
+ PELOTON_ASSERT (rw_set_.find (location) == rw_set_. end () );
126
126
rw_set_[location] = RWType::INSERT;
127
127
}
128
128
129
129
bool TransactionContext::RecordDelete (const ItemPointer &location) {
130
- PELOTON_ASSERT (rw_set_.count (location) == 0 ||
130
+ PELOTON_ASSERT (rw_set_.find (location) == rw_set_. end () ||
131
131
(rw_set_[location] != RWType::DELETE &&
132
132
rw_set_[location] != RWType::INS_DEL));
133
133
auto rw_set_it = rw_set_.find (location);
0 commit comments