git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5a728e
)
s4/torture/gentest: explain seemingly redundant initialisation
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Wed, 12 Jul 2023 06:34:49 +0000
(18:34 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 26 Oct 2023 01:24:32 +0000
(
01:24
+0000)
It seems silly, but it confused me.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/gentest.c
patch
|
blob
|
history
diff --git
a/source4/torture/gentest.c
b/source4/torture/gentest.c
index 77647608d1fb3eb8785be93b8c3faf2c51288670..a832c597379d57474a80728efe602cbdc180c72b 100644
(file)
--- a/
source4/torture/gentest.c
+++ b/
source4/torture/gentest.c
@@
-3051,6
+3051,7
@@
static int run_test(struct tevent_context *ev, struct loadparm_context *lp_ctx)
memset(open_handles, 0, options.max_open_handles * sizeof(open_handles[0]));
num_open_handles = 0;
+ /* reset the counts from previous runs */
for (i=0;i<ARRAY_SIZE(gen_ops);i++) {
gen_ops[i].count = 0;
gen_ops[i].success_count = 0;