mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Cleanup: Add missing const
This commit is contained in:
parent
959ad2f30f
commit
97b0eeed2b
2 changed files with 8 additions and 13 deletions
|
@ -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 @@ 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()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue