I don't think this kind of hack belongs in the tdb2 source, but SAMBA uses
it to speed testing, so we should respect it: handle it in our compat
open wrapper.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Jun 20 12:32:08 CEST 2011 on sn-devel-104
attr = &cif;
tdb_flags &= ~TDB_CLEAR_IF_FIRST;
}
+
+ /* Testsuite uses this to speed things up. */
+ if (getenv("TDB_NO_FSYNC")) {
+ tdb_flags |= TDB_NOSYNC;
+ }
+
return tdb_open(name, tdb_flags|TDB_ALLOW_NESTING, open_flags, mode,
attr);
}