@@ -6329,7 +6329,7 @@ void TABLE::prepare_for_position()
6329
6329
if ((file->ha_table_flags () & HA_PRIMARY_KEY_IN_READ_INDEX) &&
6330
6330
s->primary_key < MAX_KEY)
6331
6331
{
6332
- mark_columns_used_by_index_for_read_no_reset (s->primary_key );
6332
+ mark_index_columns_for_read (s->primary_key );
6333
6333
/* signal change */
6334
6334
file->column_bitmaps_signal ();
6335
6335
}
@@ -6345,7 +6345,7 @@ MY_BITMAP *TABLE::prepare_for_keyread(uint index, MY_BITMAP *map)
6345
6345
file->ha_start_keyread (index);
6346
6346
if (map != read_set || !(file->index_flags (index, 0 , 1 ) & HA_CLUSTERED_INDEX))
6347
6347
{
6348
- mark_columns_used_by_index (index, map);
6348
+ mark_index_columns (index, map);
6349
6349
column_bitmaps_set (map);
6350
6350
}
6351
6351
DBUG_RETURN (backup);
@@ -6356,12 +6356,12 @@ MY_BITMAP *TABLE::prepare_for_keyread(uint index, MY_BITMAP *map)
6356
6356
Mark that only fields from one key is used. Useful before keyread.
6357
6357
*/
6358
6358
6359
- void TABLE::mark_columns_used_by_index (uint index, MY_BITMAP *bitmap)
6359
+ void TABLE::mark_index_columns (uint index, MY_BITMAP *bitmap)
6360
6360
{
6361
- DBUG_ENTER (" TABLE::mark_columns_used_by_index " );
6361
+ DBUG_ENTER (" TABLE::mark_index_columns " );
6362
6362
6363
6363
bitmap_clear_all (bitmap);
6364
- mark_columns_used_by_index_no_reset (index, bitmap);
6364
+ mark_index_columns_no_reset (index, bitmap);
6365
6365
DBUG_VOID_RETURN;
6366
6366
}
6367
6367
@@ -6385,8 +6385,8 @@ void TABLE::restore_column_maps_after_keyread(MY_BITMAP *backup)
6385
6385
DBUG_VOID_RETURN;
6386
6386
}
6387
6387
6388
- static void mark_index_columns (TABLE *table, uint index,
6389
- MY_BITMAP *bitmap, bool read)
6388
+ static void do_mark_index_columns (TABLE *table, uint index,
6389
+ MY_BITMAP *bitmap, bool read)
6390
6390
{
6391
6391
KEY_PART_INFO *key_part= table->key_info [index].key_part ;
6392
6392
uint key_parts= table->key_info [index].user_defined_key_parts ;
@@ -6397,22 +6397,22 @@ static void mark_index_columns(TABLE *table, uint index,
6397
6397
bitmap_set_bit (bitmap, key_part[k].fieldnr -1 );
6398
6398
if (table->file ->ha_table_flags () & HA_PRIMARY_KEY_IN_READ_INDEX &&
6399
6399
table->s ->primary_key != MAX_KEY && table->s ->primary_key != index)
6400
- mark_index_columns (table, table->s ->primary_key , bitmap, read);
6400
+ do_mark_index_columns (table, table->s ->primary_key , bitmap, read);
6401
6401
6402
6402
}
6403
6403
/*
6404
6404
mark columns used by key, but don't reset other fields
6405
6405
*/
6406
6406
6407
- inline void TABLE::mark_columns_used_by_index_no_reset (uint index, MY_BITMAP *bitmap)
6407
+ inline void TABLE::mark_index_columns_no_reset (uint index, MY_BITMAP *bitmap)
6408
6408
{
6409
- mark_index_columns (this , index, bitmap, false );
6409
+ do_mark_index_columns (this , index, bitmap, false );
6410
6410
}
6411
6411
6412
6412
6413
- inline void TABLE::mark_columns_used_by_index_for_read_no_reset (uint index)
6413
+ inline void TABLE::mark_index_columns_for_read (uint index)
6414
6414
{
6415
- mark_index_columns (this , index, read_set, true );
6415
+ do_mark_index_columns (this , index, read_set, true );
6416
6416
}
6417
6417
6418
6418
/*
@@ -6433,7 +6433,7 @@ void TABLE::mark_auto_increment_column()
6433
6433
bitmap_set_bit (read_set, found_next_number_field->field_index );
6434
6434
bitmap_set_bit (write_set, found_next_number_field->field_index );
6435
6435
if (s->next_number_keypart )
6436
- mark_columns_used_by_index_for_read_no_reset (s->next_number_index );
6436
+ mark_index_columns_for_read (s->next_number_index );
6437
6437
file->column_bitmaps_signal ();
6438
6438
}
6439
6439
@@ -6489,7 +6489,7 @@ void TABLE::mark_columns_needed_for_delete()
6489
6489
file->use_hidden_primary_key ();
6490
6490
else
6491
6491
{
6492
- mark_columns_used_by_index_for_read_no_reset (s->primary_key );
6492
+ mark_index_columns_for_read (s->primary_key );
6493
6493
need_signal= true ;
6494
6494
}
6495
6495
}
@@ -6579,7 +6579,7 @@ void TABLE::mark_columns_needed_for_update()
6579
6579
file->use_hidden_primary_key ();
6580
6580
else
6581
6581
{
6582
- mark_columns_used_by_index_for_read_no_reset (s->primary_key );
6582
+ mark_index_columns_for_read (s->primary_key );
6583
6583
need_signal= true ;
6584
6584
}
6585
6585
}
@@ -6742,7 +6742,7 @@ void TABLE::mark_columns_per_binlog_row_image()
6742
6742
We don't need to mark the primary key in the rpl_write_set as the
6743
6743
binary log will include all columns read anyway.
6744
6744
*/
6745
- mark_columns_used_by_index_for_read_no_reset (s->primary_key );
6745
+ mark_index_columns_for_read (s->primary_key );
6746
6746
/* Only write columns that have changed */
6747
6747
rpl_write_set= write_set;
6748
6748
break ;
0 commit comments