Cleanup: Add missing const

This commit is contained in:
Marko Mäkelä 2022-10-06 13:14:40 +03:00
parent 959ad2f30f
commit 97b0eeed2b
2 changed files with 8 additions and 13 deletions

View file

@ -20169,7 +20169,7 @@ innobase_rename_vc_templ(
for purge thread.
*/
bool innobase_allocate_row_for_vcol(THD *thd, dict_index_t *index,
bool innobase_allocate_row_for_vcol(THD *thd, const dict_index_t *index,
mem_heap_t **heap, TABLE **table,
VCOL_STORAGE *storage)
{

View file

@ -755,9 +755,8 @@ struct VCOL_STORAGE
@return TRUE malloc failure
*/
bool innobase_allocate_row_for_vcol(
THD * thd,
dict_index_t* index,
bool innobase_allocate_row_for_vcol(THD *thd,
const dict_index_t* index,
mem_heap_t** heap,
TABLE** table,
VCOL_STORAGE* storage);
@ -773,17 +772,13 @@ public:
ib_vcol_row(mem_heap_t *heap) : heap(heap) {}
byte *record(THD *thd, dict_index_t *index, TABLE **table)
byte *record(THD *thd, const dict_index_t *index, TABLE **table)
{
if (!storage.innobase_record)
{
bool ok = innobase_allocate_row_for_vcol(thd, index, &heap, table,
&storage);
if (!ok)
return NULL;
}
if (!storage.innobase_record &&
!innobase_allocate_row_for_vcol(thd, index, &heap, table, &storage))
return nullptr;
return storage.innobase_record;
};
}
~ib_vcol_row()
{