summaryrefslogtreecommitdiff
path: root/sql/examples/ha_archive.h
diff options
context:
space:
mode:
authorunknown <ingo@mysql.com>2005-01-26 15:27:31 +0100
committerunknown <ingo@mysql.com>2005-01-26 15:27:31 +0100
commitb6e00331717eebcb6a48960db6b860c4c73c7054 (patch)
tree0449631dc52c3f1b9740d442d15085bf7e611a30 /sql/examples/ha_archive.h
parentf712a3d8d9b93cfb7e4c04aac1e5072b710cbe37 (diff)
downloadmariadb-git-b6e00331717eebcb6a48960db6b860c4c73c7054.tar.gz
Test Bug: Memory leaks in the archive handler.
Moved initialization code into a new init function. Added a new cleanup function. Added a call to close the meta file. mysql-test/t/archive.test: Test Bug: Memory leaks in the archive handler. Fixed a typo. sql/examples/ha_archive.h: Test Bug: Memory leaks in the archive handler. Added declarations for the new init/cleanup functions. sql/handler.cc: Test Bug: Memory leaks in the archive handler. Added calls of the new init/cleanup functions.
Diffstat (limited to 'sql/examples/ha_archive.h')
-rw-r--r--sql/examples/ha_archive.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/examples/ha_archive.h b/sql/examples/ha_archive.h
index b619de5f6c1..855d756368d 100644
--- a/sql/examples/ha_archive.h
+++ b/sql/examples/ha_archive.h
@@ -125,3 +125,7 @@ public:
THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to,
enum thr_lock_type lock_type);
};
+
+bool archive_db_init(void);
+bool archive_db_end(void);
+