git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e1c888
)
r23062: make sure one node doesn't get ahead of the others at the start
author
Andrew Tridgell
<tridge@samba.org>
Tue, 22 May 2007 05:16:16 +0000
(
05:16
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:52:46 +0000
(14:52 -0500)
(This used to be commit
6ab736f5308aabec609408cef9e4c3629081dd75
)
source4/torture/raw/openbench.c
patch
|
blob
|
history
diff --git
a/source4/torture/raw/openbench.c
b/source4/torture/raw/openbench.c
index d1c2bb0aa70ed6f94cc2598cc302191928ba5666..0f4cab40627773bd02c098c7d1c75ca053d76973 100644
(file)
--- 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].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;
}
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++) {
}
for (i=0;i<nprocs;i++) {
- state[i].fnum = -1;
state[i].file_num = i;
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]);
}
next_operation(&state[i]);
}