summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-16 20:06:44 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-16 21:09:17 +1000
commitff515ff4772a555facce75eead91ceff271713f5 (patch)
tree3de0821ec7f00290352c0e2049eddcd2fa9a1e33 /lib/tdb/common
parenta394a8104eb2cebdcda44510c6ed86b6f773a06d (diff)
downloadsamba-ff515ff4772a555facce75eead91ceff271713f5.tar.gz
samba-ff515ff4772a555facce75eead91ceff271713f5.tar.bz2
samba-ff515ff4772a555facce75eead91ceff271713f5.zip
tdb: added TDB_NO_FSYNC env variable
this might help reduce test times and load on test machines
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/open.c4
1 files changed, 4 insertions, 0 deletions
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!