1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-30 05:23:50 +03:00
Files
mariadb/cxx/db.cpp
Bradley C. Kuszmaul 686d25d567 More fiddling around with c++. Addresses #197.
git-svn-id: file:///svn/tokudb@1177 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-18 01:31:34 +00:00

22 lines
379 B
C++

#include "db_cxx.h"
Db::~Db() {
if (!the_db) {
the_db->close(db, 0);
the_db->toku_internal = 0;
// Do we need to clean up "private environments"?
}
}
int DB::close (u_int32_t flags) {
if (!the_db) {
return EINVAL;
}
int ret = the_db->close(flags);
the_db->toku_internal = 0;
// Do we need to clean up "private environments"?
return ret;
}