summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tdb_compat/tdb_compat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tdb_compat/tdb_compat.c b/lib/tdb_compat/tdb_compat.c
index f432296a40..a9173fc33d 100644
--- a/lib/tdb_compat/tdb_compat.c
+++ b/lib/tdb_compat/tdb_compat.c
@@ -90,6 +90,12 @@ tdb_open_compat_(const char *name, int hash_size_unused,
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);
}