Use NOSYNC flag

vmware
Howard Chu 14 years ago
parent 0c2610ebdd
commit a2de260fb3
  1. 2
      libraries/libmdb/mtest.c

@ -25,7 +25,7 @@ int main(int argc,char * argv[])
} }
rc = mdbenv_create(&env, 10485760); 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_txn_begin(env, 0, &txn);
rc = mdb_open(env, txn, NULL, 0, &db); rc = mdb_open(env, txn, NULL, 0, &db);

Loading…
Cancel
Save