]> git.sur5r.net Git - openldap/commitdiff
Use NOSYNC flag
authorHoward Chu <hyc@symas.com>
Tue, 28 Jun 2011 07:15:40 +0000 (00:15 -0700)
committerHoward Chu <hyc@symas.com>
Tue, 28 Jun 2011 07:15:40 +0000 (00:15 -0700)
libraries/libmdb/mtest.c

index bc3df268c928364afb6c32aa1dead81aec95b745..f99beb82a0a490bf4f877a90ebc50f7bc851d0df 100644 (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);