mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 22:34:12 +08:00
mdbx: fix build mtest1.
Change-Id: I8d206bb45ee4b99b1e12b32897c5b5b31c4df760
This commit is contained in:
parent
ff70f5feb0
commit
7ea16c1daf
6
mtest1.c
6
mtest1.c
@ -74,7 +74,7 @@ int main(int argc,char * argv[])
|
|||||||
env_oflags = 0;
|
env_oflags = 0;
|
||||||
}
|
}
|
||||||
/* LY: especially here we always needs MDB_NOSYNC
|
/* LY: especially here we always needs MDB_NOSYNC
|
||||||
* for testing mdb_env_close_ex() and "redo-to-steady" on open. */
|
* for testing mdbx_env_close_ex() and "redo-to-steady" on open. */
|
||||||
env_oflags |= MDB_NOSYNC;
|
env_oflags |= MDB_NOSYNC;
|
||||||
E(mdb_env_open(env, DBPATH, env_oflags, 0664));
|
E(mdb_env_open(env, DBPATH, env_oflags, 0664));
|
||||||
|
|
||||||
@ -159,7 +159,7 @@ int main(int argc,char * argv[])
|
|||||||
|
|
||||||
mdb_dbi_close(env, dbi);
|
mdb_dbi_close(env, dbi);
|
||||||
/********************* LY: kept DB dirty ****************/
|
/********************* LY: kept DB dirty ****************/
|
||||||
mdb_env_close_ex(env, 1);
|
mdbx_env_close_ex(env, 1);
|
||||||
E(mdb_env_create(&env));
|
E(mdb_env_create(&env));
|
||||||
E(mdb_env_set_maxdbs(env, 4));
|
E(mdb_env_set_maxdbs(env, 4));
|
||||||
E(mdb_env_open(env, DBPATH, env_oflags, 0664));
|
E(mdb_env_open(env, DBPATH, env_oflags, 0664));
|
||||||
@ -194,7 +194,7 @@ int main(int argc,char * argv[])
|
|||||||
mdb_txn_abort(txn);
|
mdb_txn_abort(txn);
|
||||||
|
|
||||||
mdb_dbi_close(env, dbi);
|
mdb_dbi_close(env, dbi);
|
||||||
mdb_env_close_ex(env, 0);
|
mdbx_env_close_ex(env, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user