MXS-1624 Allow the closing of an info object

If an info object can be dupped, it must also be possible to
close it.
This commit is contained in:
Johan Wikman
2018-07-05 11:05:26 +03:00
parent 295bae5673
commit a044929661
3 changed files with 21 additions and 5 deletions

View File

@ -423,7 +423,15 @@ typedef struct query_classifier
*
* @return The same info that was provided as argument.
*/
QC_STMT_INFO* (*qc_dup)(QC_STMT_INFO* info);
QC_STMT_INFO* (*qc_info_dup)(QC_STMT_INFO* info);
/**
* Closes a dupped info object.After the info objec has been closed, it must
* not be accessed.
*
* @param info The info to be closed.
*/
void (*qc_info_close)(QC_STMT_INFO* info);
} QUERY_CLASSIFIER;
/**