summaryrefslogtreecommitdiff
path: root/lib/ntdb/test/external-agent.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-22 09:17:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-22 07:35:16 +0200
commit0265837ee8ab98b00c18411bee3770075e27f900 (patch)
treebd86ad96f568abc5896b0ba51f0c944b48815cfc /lib/ntdb/test/external-agent.c
parent0c54e7c93627963401a1deec1e0bd1c65bdeea00 (diff)
downloadsamba-0265837ee8ab98b00c18411bee3770075e27f900.tar.gz
samba-0265837ee8ab98b00c18411bee3770075e27f900.tar.bz2
samba-0265837ee8ab98b00c18411bee3770075e27f900.zip
ntdb: respect TDB_NO_FSYNC flag for 'make test'
This reduces test time from 31 seconds to 6, on my laptop. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/test/external-agent.c')
-rw-r--r--lib/ntdb/test/external-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ntdb/test/external-agent.c b/lib/ntdb/test/external-agent.c
index 46654c2e64..a06b70f788 100644
--- a/lib/ntdb/test/external-agent.c
+++ b/lib/ntdb/test/external-agent.c
@@ -76,7 +76,7 @@ static enum agent_return do_operation(enum operation op, const char *name)
diag("Already have ntdb %s open", ntdb_name(ntdb));
return OTHER_FAILURE;
}
- ntdb = ntdb_open(name, NTDB_DEFAULT, O_RDWR, 0, &tap_log_attr);
+ ntdb = ntdb_open(name, MAYBE_NOSYNC, O_RDWR, 0, &tap_log_attr);
if (!ntdb) {
if (!locking_would_block)
diag("Opening ntdb gave %s", strerror(errno));
@@ -93,7 +93,7 @@ static enum agent_return do_operation(enum operation op, const char *name)
cif.openhook.base.attr = NTDB_ATTRIBUTE_OPENHOOK;
cif.openhook.base.next = &tap_log_attr;
cif.openhook.fn = clear_if_first;
- ntdb = ntdb_open(name, NTDB_DEFAULT, O_RDWR, 0, &cif);
+ ntdb = ntdb_open(name, MAYBE_NOSYNC, O_RDWR, 0, &cif);
if (!ntdb) {
if (!locking_would_block)
diag("Opening ntdb gave %s", strerror(errno));