When the MySQL server is finished with a table, it will call the
close()
method to close file pointers and release any other resources.
Storage engines that use the shared access methods seen in the
CSV
engine and other example engines must
remove themselves from the shared structure:
int ha_tina::close(void)
{
DBUG_ENTER("ha_tina::close");
DBUG_RETURN(free_share(share));
}
Storage engines using their own share management systems should
use whatever methods are needed to remove the handler instance
from the share for the table opened in their handler.