summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-22 05:16:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:46 -0500
commit5bb0dcd0511d5a1fa1a255c11f14a5e0b9100d7c (patch)
treed697e010c82a380c2dd47dc14c60fb757ef9924b /source4
parent9e1c88897c78fc04e80e463e3e85cd997fdf0772 (diff)
downloadsamba-5bb0dcd0511d5a1fa1a255c11f14a5e0b9100d7c.tar.gz
samba-5bb0dcd0511d5a1fa1a255c11f14a5e0b9100d7c.tar.bz2
samba-5bb0dcd0511d5a1fa1a255c11f14a5e0b9100d7c.zip
r23062: make sure one node doesn't get ahead of the others at the start
(This used to be commit 6ab736f5308aabec609408cef9e4c3629081dd75)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/raw/openbench.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/raw/openbench.c b/source4/torture/raw/openbench.c
index d1c2bb0aa7..0f4cab4062 100644
--- a/source4/torture/raw/openbench.c
+++ b/source4/torture/raw/openbench.c
@@ -325,7 +325,6 @@ BOOL torture_bench_open(struct torture_context *torture)
state[i].mem_ctx = talloc_new(state);
state[i].client_num = i;
state[i].ev = ev;
- state[i].stage = OPEN_INITIAL;
if (!torture_open_connection_ev(&state[i].cli, i, ev)) {
return False;
}
@@ -352,8 +351,11 @@ BOOL torture_bench_open(struct torture_context *torture)
}
for (i=0;i<nprocs;i++) {
- state[i].fnum = -1;
state[i].file_num = i;
+ state[i].fnum = smbcli_open(state[i].tree,
+ fnames[state->file_num],
+ O_RDWR|O_CREAT, DENY_ALL);
+ state[i].stage = OPEN_OPEN;
next_operation(&state[i]);
}