summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-22 05:16:16 +0000
committerAndrew Tridgell <tridge@samba.org>2007-05-22 05:16:16 +0000
commit50d4ec3630bb725c37eef610e1fd2d15afc3a4b0 (patch)
treedd852422cff275c8042845ff346d0b369a9d5adf
parenta44ccf9ef18e37df3eafb2d8fc838c10a932616e (diff)
downloadsamba-50d4ec3630bb725c37eef610e1fd2d15afc3a4b0.tar.gz
samba-50d4ec3630bb725c37eef610e1fd2d15afc3a4b0.tar.xz
samba-50d4ec3630bb725c37eef610e1fd2d15afc3a4b0.zip
r23062: make sure one node doesn't get ahead of the others at the start
-rw-r--r--source/torture/raw/openbench.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/torture/raw/openbench.c b/source/torture/raw/openbench.c
index d1c2bb0aa70..0f4cab40627 100644
--- a/source/torture/raw/openbench.c
+++ b/source/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]);
}