From ff515ff4772a555facce75eead91ceff271713f5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 16 Sep 2010 20:06:44 +1000 Subject: tdb: added TDB_NO_FSYNC env variable this might help reduce test times and load on test machines --- lib/tdb/common/open.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index 401fa74ae0..d195c1c484 100644 --- a/lib/tdb/common/open.c +++ b/lib/tdb/common/open.c @@ -228,6 +228,10 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags, goto fail; } + if (getenv("TDB_NO_FSYNC")) { + tdb->flags |= TDB_NOSYNC; + } + /* * TDB_ALLOW_NESTING is the default behavior. * Note: this may change in future versions! -- cgit