Use NOSYNC flag

This commit is contained in:
Howard Chu 2011-06-28 00:15:40 -07:00
parent 0c2610ebdd
commit a2de260fb3

View File

@ -25,7 +25,7 @@ int main(int argc,char * argv[])
}
rc = mdbenv_create(&env, 10485760);
rc = mdbenv_open(env, "./testdb", MDB_FIXEDMAP, 0664);
rc = mdbenv_open(env, "./testdb", MDB_FIXEDMAP|MDB_NOSYNC, 0664);
rc = mdb_txn_begin(env, 0, &txn);
rc = mdb_open(env, txn, NULL, 0, &db);