mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-18 17:52:22 +08:00
lmdb: test for weak-checkpoints feature.
This is 8/9 for https://github.com/ReOpen/ReOpenLDAP/issues/1 and https://github.com/ReOpen/ReOpenLDAP/issues/2 Change-Id: I2bd2d62a9b79d2953409c865fad699d554c4b694
This commit is contained in:
4
mtest5.c
4
mtest5.c
@@ -55,7 +55,9 @@ int main(int argc,char * argv[])
|
||||
E(mdb_env_open(env, "./testdb", MDB_FIXEDMAP|MDB_NOSYNC, 0664));
|
||||
|
||||
E(mdb_txn_begin(env, NULL, 0, &txn));
|
||||
E(mdb_dbi_open(txn, "id2", MDB_CREATE|MDB_DUPSORT, &dbi));
|
||||
if (mdb_dbi_open(txn, "id5", MDB_CREATE, &dbi) == MDB_SUCCESS)
|
||||
E(mdb_drop(txn, dbi, 1));
|
||||
E(mdb_dbi_open(txn, "id5", MDB_CREATE|MDB_DUPSORT, &dbi));
|
||||
E(mdb_cursor_open(txn, dbi, &cursor));
|
||||
|
||||
key.mv_size = sizeof(int);
|
||||
|
||||
Reference in New Issue
Block a user