db_create returns EINVAL on any flags. Fixes #36

git-svn-id: file:///svn/tokudb@756 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2007-11-26 16:28:00 +00:00
parent b4e9133ffb
commit acf13b93bb

View file

@ -769,6 +769,8 @@ extern int toku_default_compare_fun(DB * db, const DBT * a, const DBT * b);
int db_create(DB ** db, DB_ENV * env, u_int32_t flags) {
int r;
if (flags) return EINVAL;
/* if the env already exists then add a ref to it
otherwise create one */
if (env) {