Commit 97b0eeed authored by Marko Mäkelä's avatar Marko Mäkelä

Cleanup: Add missing const

parent 959ad2f3
......@@ -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)
{
......
......@@ -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 @@ class ib_vcol_row
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()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment