diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 23:06:27 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 23:06:27 +0200 |
commit | 4b9c7df9b7465a360e7a528a116ed3740447b7be (patch) | |
tree | c5b0cc64e340777511ecac569b793ef24b8615b1 /source4/torture/raw/oplock.c | |
parent | a195cd9d8f3d0c0185fbf82388bd1efaa63e7bd5 (diff) | |
download | samba-4b9c7df9b7465a360e7a528a116ed3740447b7be.tar.gz samba-4b9c7df9b7465a360e7a528a116ed3740447b7be.tar.xz samba-4b9c7df9b7465a360e7a528a116ed3740447b7be.zip |
Avoid event_find_context when a event context is already available.
(This used to be commit 4ca264679ecfd938c538a93f4efff1bfa23c3744)
Diffstat (limited to 'source4/torture/raw/oplock.c')
-rw-r--r-- | source4/torture/raw/oplock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c index 1927a0f027..fd8d292980 100644 --- a/source4/torture/raw/oplock.c +++ b/source4/torture/raw/oplock.c @@ -2841,13 +2841,12 @@ bool torture_bench_oplock(struct torture_context *torture) int timelimit = torture_setting_int(torture, "timelimit", 10); union smb_open io; struct timeval tv; - struct event_context *ev = event_context_find(mem_ctx); cli = talloc_array(mem_ctx, struct smbcli_state *, torture_nprocs); torture_comment(torture, "Opening %d connections\n", torture_nprocs); for (i=0;i<torture_nprocs;i++) { - if (!torture_open_connection_ev(&cli[i], i, torture, ev)) { + if (!torture_open_connection_ev(&cli[i], i, torture, torture->ev)) { return false; } talloc_steal(mem_ctx, cli[i]); |