Commit c7c54ce6 authored by Marko Mäkelä's avatar Marko Mäkelä

fts_doc_ids_free(): Define inline

parent 7f721107
......@@ -2889,22 +2889,6 @@ fts_doc_ids_create(void)
return(fts_doc_ids);
}
/*********************************************************************//**
Free a fts_doc_ids_t. */
void
fts_doc_ids_free(
/*=============*/
fts_doc_ids_t* fts_doc_ids)
{
mem_heap_t* heap = static_cast<mem_heap_t*>(
fts_doc_ids->self_heap->arg);
memset(fts_doc_ids, 0, sizeof(*fts_doc_ids));
mem_heap_free(heap);
}
/*********************************************************************//**
Do commit-phase steps necessary for the insertion of a new row. */
void
......
/*****************************************************************************
Copyright (c) 2011, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 2017, MariaDB Corporation.
Copyright (c) 2016, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
......@@ -429,13 +429,11 @@ fts_doc_ids_t*
fts_doc_ids_create(void);
/*=====================*/
/******************************************************************//**
Free a fts_doc_ids_t. */
UNIV_INTERN
void
fts_doc_ids_free(
/*=============*/
fts_doc_ids_t* doc_ids); /*!< in: doc_ids to free */
/** Free fts_doc_ids_t */
inline void fts_doc_ids_free(fts_doc_ids_t* doc_ids)
{
mem_heap_free(static_cast<mem_heap_t*>(doc_ids->self_heap->arg));
}
/******************************************************************//**
Notify the FTS system about an operation on an FTS-indexed table. */
......
......@@ -2889,22 +2889,6 @@ fts_doc_ids_create(void)
return(fts_doc_ids);
}
/*********************************************************************//**
Free a fts_doc_ids_t. */
void
fts_doc_ids_free(
/*=============*/
fts_doc_ids_t* fts_doc_ids)
{
mem_heap_t* heap = static_cast<mem_heap_t*>(
fts_doc_ids->self_heap->arg);
memset(fts_doc_ids, 0, sizeof(*fts_doc_ids));
mem_heap_free(heap);
}
/*********************************************************************//**
Do commit-phase steps necessary for the insertion of a new row. */
void
......
/*****************************************************************************
Copyright (c) 2011, 2018, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 2017, MariaDB Corporation.
Copyright (c) 2016, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
......@@ -429,13 +429,11 @@ fts_doc_ids_t*
fts_doc_ids_create(void);
/*=====================*/
/******************************************************************//**
Free a fts_doc_ids_t. */
UNIV_INTERN
void
fts_doc_ids_free(
/*=============*/
fts_doc_ids_t* doc_ids); /*!< in: doc_ids to free */
/** Free fts_doc_ids_t */
inline void fts_doc_ids_free(fts_doc_ids_t* doc_ids)
{
mem_heap_free(static_cast<mem_heap_t*>(doc_ids->self_heap->arg));
}
/******************************************************************//**
Notify the FTS system about an operation on an FTS-indexed table. */
......
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