Skip to content

Commit f0cf066

Browse files
committed
ndbinfo
- fix warning about "table_share" hiding handler::table_share
1 parent 22dcf06 commit f0cf066

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sql/ha_ndbinfo.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,7 @@ int ha_ndbinfo::rnd_init(bool scan)
255255
DBUG_RETURN(err2mysql(err));
256256

257257
/* Read all columns specified in read_set */
258-
TABLE_SHARE *table_share = table->s;
259-
for (uint i = 0; i < table_share->fields; i++)
258+
for (uint i = 0; i < table->s->fields; i++)
260259
{
261260
Field *field = table->field[i];
262261
if (bitmap_is_set(table->read_set, i))
@@ -352,8 +351,7 @@ ha_ndbinfo::unpack_record(uchar *dst_row)
352351
DBUG_ENTER("ha_ndbinfo::unpack_record");
353352
my_ptrdiff_t dst_offset = dst_row - table->record[0];
354353

355-
TABLE_SHARE *table_share = table->s;
356-
for (uint i = 0; i < table_share->fields; i++)
354+
for (uint i = 0; i < table->s->fields; i++)
357355
{
358356
Field *field = table->field[i];
359357
const NdbInfoRecAttr* record = m_impl.m_columns[i];

0 commit comments

Comments
 (0)