Loading sql/examples/ha_tina.cc +10 −0 Original line number Diff line number Diff line Loading @@ -234,6 +234,16 @@ static int free_share(TINA_SHARE *share) DBUG_RETURN(result_code); } bool tina_end() { if (tina_init) { hash_free(&tina_open_tables); VOID(pthread_mutex_destroy(&tina_mutex)); } tina_init= 0; return FALSE; } /* Finds the end of a line. Loading sql/examples/ha_tina.h +3 −0 Original line number Diff line number Diff line Loading @@ -126,3 +126,6 @@ class ha_tina: public handler int find_current_row(byte *buf); int chain_append(); }; bool tina_end(); sql/handler.cc +4 −0 Original line number Diff line number Diff line Loading @@ -598,6 +598,10 @@ int ha_panic(enum ha_panic_function flag) #ifdef HAVE_ARCHIVE_DB if (have_archive_db == SHOW_OPTION_YES) error|= archive_db_end(); #endif #ifdef HAVE_CSV_DB if (have_csv_db == SHOW_OPTION_YES) error|= tina_end(); #endif if (ha_finish_errors()) error= 1; Loading Loading
sql/examples/ha_tina.cc +10 −0 Original line number Diff line number Diff line Loading @@ -234,6 +234,16 @@ static int free_share(TINA_SHARE *share) DBUG_RETURN(result_code); } bool tina_end() { if (tina_init) { hash_free(&tina_open_tables); VOID(pthread_mutex_destroy(&tina_mutex)); } tina_init= 0; return FALSE; } /* Finds the end of a line. Loading
sql/examples/ha_tina.h +3 −0 Original line number Diff line number Diff line Loading @@ -126,3 +126,6 @@ class ha_tina: public handler int find_current_row(byte *buf); int chain_append(); }; bool tina_end();
sql/handler.cc +4 −0 Original line number Diff line number Diff line Loading @@ -598,6 +598,10 @@ int ha_panic(enum ha_panic_function flag) #ifdef HAVE_ARCHIVE_DB if (have_archive_db == SHOW_OPTION_YES) error|= archive_db_end(); #endif #ifdef HAVE_CSV_DB if (have_csv_db == SHOW_OPTION_YES) error|= tina_end(); #endif if (ha_finish_errors()) error= 1; Loading