summaryrefslogtreecommitdiff
path: root/sql/examples
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-02-02 17:18:42 +0400
committerunknown <gluh@mysql.com/eagle.(none)>2007-02-02 17:18:42 +0400
commit04cbadde7a499d9042f807b585df67741ddfa2b5 (patch)
tree0a7aa80c9f7afc087731a3c9a6ffb85dc22f127c /sql/examples
parent84445bbb5dc62900ddd44397c81763db7a1d1224 (diff)
downloadmariadb-git-04cbadde7a499d9042f807b585df67741ddfa2b5.tar.gz
another valgrind error fix for 4.1(backport from 5.0)
Diffstat (limited to 'sql/examples')
-rw-r--r--sql/examples/ha_tina.cc12
-rw-r--r--sql/examples/ha_tina.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc
index 0091e1f40a0..a3b05d298c2 100644
--- a/sql/examples/ha_tina.cc
+++ b/sql/examples/ha_tina.cc
@@ -220,6 +220,18 @@ static int free_share(TINA_SHARE *share)
}
+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.
Currently only supports files written on a UNIX OS.
diff --git a/sql/examples/ha_tina.h b/sql/examples/ha_tina.h
index d8cd0fa9cfe..266db1bc1fe 100644
--- a/sql/examples/ha_tina.h
+++ b/sql/examples/ha_tina.h
@@ -136,3 +136,5 @@ class ha_tina: public handler
int find_current_row(byte *buf);
int chain_append();
};
+
+bool tina_end();