Commit 97c5f292 authored by Rich Prohaska's avatar Rich Prohaska

crash in txn begin, commit

git-svn-id: file:///svn/tokudb@2263 c7de825b-a66e-492c-adef-691d508d4ae1
parent 187380c6
#include <stdio.h>
#include <assert.h>
#include <sys/stat.h>
#include <db.h>
#include "test.h"
int main(int argc, char *argv[]) {
int r;
DB_ENV *env;
system("rm -rf " DIR);
mkdir(DIR, 0777);
r = db_env_create(&env, 0);
assert(r == 0);
r = env->open(env, DIR, DB_INIT_MPOOL + DB_INIT_LOG + DB_INIT_TXN + DB_PRIVATE + DB_CREATE, 0777);
assert(r == 0);
DB_TXN *txn;
r = env->txn_begin(env, 0, &txn, 0);
assert(r == 0);
r = txn->commit(txn, 0);
assert(r == 0);
r = env->close(env, 0);
assert(r == 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