summaryrefslogtreecommitdiff
path: root/lib/tdb/wscript
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-22 15:07:44 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-22 07:35:17 +0200
commit1783fe34433f9bb4b939de3231a7c296390ec426 (patch)
tree42d25680bc9c1e209a841b1a0d8fdc1d92297db4 /lib/tdb/wscript
parent945473aac0abffd8509bbeef3ed5a32737b7df51 (diff)
downloadsamba-1783fe34433f9bb4b939de3231a7c296390ec426.tar.gz
samba-1783fe34433f9bb4b939de3231a7c296390ec426.tar.bz2
samba-1783fe34433f9bb4b939de3231a7c296390ec426.zip
tdb: make TDB_NOSYNC merely disable sync.
(As suggested by Stefan Metzmacher, based on the change to ntdb.) Since commit ec96ea690edbe3398d690b4a953d487ca1773f1c, we handle the case where a process dies during a transaction commit. Unfortunately, TDB_NOSYNC means this no longer works, as it disables the recovery area as well as the actual msync/fsync. We should do everything except the syncs. This also means we can do a complete test with $TDB_NO_FSYNC set; just to get more complete coverage, we disable it explicitly for one test (where we override the actual sync calls anyway). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/wscript')
-rw-r--r--lib/tdb/wscript4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/tdb/wscript b/lib/tdb/wscript
index 01b4892fb0..e28e43acac 100644
--- a/lib/tdb/wscript
+++ b/lib/tdb/wscript
@@ -185,10 +185,6 @@ def testonly(ctx):
if not os.path.exists(link):
os.symlink(os.path.abspath(os.path.join(env.cwd, 'test')), link)
- # unset TDB_NO_FSYNC, since we want to test sync code.
- if 'TDB_NO_FSYNC' in os.environ:
- del os.environ['TDB_NO_FSYNC']
-
for f in 'tdb1-run-3G-file', 'tdb1-run-bad-tdb-header', 'tdb1-run', 'tdb1-run-check', 'tdb1-run-corrupt', 'tdb1-run-die-during-transaction', 'tdb1-run-endian', 'tdb1-run-incompatible', 'tdb1-run-nested-transactions', 'tdb1-run-nested-traverse', 'tdb1-run-no-lock-during-traverse', 'tdb1-run-oldhash', 'tdb1-run-open-during-transaction', 'tdb1-run-readonly-check', 'tdb1-run-rwlock-check', 'tdb1-run-summary', 'tdb1-run-transaction-expand', 'tdb1-run-traverse-in-transaction', 'tdb1-run-wronghash-fail', 'tdb1-run-zero-append':
cmd = "cd " + testdir + " && " + os.path.abspath(os.path.join(Utils.g_module.blddir, f)) + " > test-output 2>&1"
print("..." + f)