Commit db90efcb authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Finish cleanup. Addresses #855, #856.

git-svn-id: file:///svn/tokudb@4348 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1a1114a7
...@@ -21,6 +21,12 @@ void setup (void) { ...@@ -21,6 +21,12 @@ void setup (void) {
r=txn->commit(txn, 0); assert(r==0); r=txn->commit(txn, 0); assert(r==0);
} }
void shutdown (void) {
int r;
r= db->close(db, 0); CKERR(r);
r= env->close(env, 0); CKERR(r);
}
void doit (void) { void doit (void) {
DBT key,data; DBT key,data;
int r; int r;
...@@ -54,6 +60,7 @@ int main (int argc, const char *argv[]) { ...@@ -54,6 +60,7 @@ int main (int argc, const char *argv[]) {
setup(); setup();
doit(); doit();
shutdown();
return 0; return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment