@@ -41,8 +41,8 @@ TileGroup::TileGroup(BackendType backend_type,
4141 table(table),
4242 num_tuple_slots(tuple_count),
4343 tile_group_layout_(layout){
44- tile_count = schemas.size ();
45- for (oid_t tile_itr = 0 ; tile_itr < tile_count ; tile_itr++) {
44+ tile_count_ = schemas.size ();
45+ for (oid_t tile_itr = 0 ; tile_itr < tile_count_ ; tile_itr++) {
4646 auto &manager = catalog::Manager::GetInstance ();
4747 oid_t tile_id = manager.GetNextTileId ();
4848
@@ -107,7 +107,7 @@ void TileGroup::CopyTuple(const Tuple *tuple, const oid_t &tuple_slot_id) {
107107 oid_t tile_column_count;
108108 oid_t column_itr = 0 ;
109109
110- for (oid_t tile_itr = 0 ; tile_itr < tile_count ; tile_itr++) {
110+ for (oid_t tile_itr = 0 ; tile_itr < tile_count_ ; tile_itr++) {
111111 storage::Tile *tile = GetTile (tile_itr);
112112 PELOTON_ASSERT (tile);
113113 const catalog::Schema *schema = tile->GetSchema ();
@@ -188,7 +188,7 @@ oid_t TileGroup::InsertTupleFromRecovery(cid_t commit_id, oid_t tuple_slot_id,
188188 oid_t tile_column_count;
189189 oid_t column_itr = 0 ;
190190
191- for (oid_t tile_itr = 0 ; tile_itr < tile_count ; tile_itr++) {
191+ for (oid_t tile_itr = 0 ; tile_itr < tile_count_ ; tile_itr++) {
192192 storage::Tile *tile = GetTile (tile_itr);
193193 PELOTON_ASSERT (tile);
194194 const catalog::Schema *schema = tile->GetSchema ();
@@ -287,7 +287,7 @@ oid_t TileGroup::InsertTupleFromCheckpoint(oid_t tuple_slot_id,
287287 oid_t tile_column_count;
288288 oid_t column_itr = 0 ;
289289
290- for (oid_t tile_itr = 0 ; tile_itr < tile_count ; tile_itr++) {
290+ for (oid_t tile_itr = 0 ; tile_itr < tile_count_ ; tile_itr++) {
291291
292292 storage::Tile *tile = GetTile (tile_itr);
293293 PELOTON_ASSERT (tile);
@@ -336,7 +336,7 @@ void TileGroup::SetValue(type::Value &value, oid_t tuple_id,
336336
337337std::shared_ptr<Tile> TileGroup::GetTileReference (
338338 const oid_t tile_offset) const {
339- PELOTON_ASSERT (tile_offset < tile_count );
339+ PELOTON_ASSERT (tile_offset < tile_count_ );
340340 return tiles[tile_offset];
341341}
342342
@@ -360,7 +360,7 @@ const std::string TileGroup::GetInfo() const {
360360 os << " Table[" << table_id << " ] " << std::endl;
361361 os << (*tile_group_header) << std::endl;
362362
363- for (oid_t tile_itr = 0 ; tile_itr < tile_count ; tile_itr++) {
363+ for (oid_t tile_itr = 0 ; tile_itr < tile_count_ ; tile_itr++) {
364364 Tile *tile = GetTile (tile_itr);
365365 if (tile != nullptr ) {
366366 os << std::endl << (*tile);
0 commit comments