Author: tridge Date: 2007-05-22 05:16:16 +0000 (Tue, 22 May 2007) New Revision: 23062
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23062 Log: make sure one node doesn't get ahead of the others at the start Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/openbench.c =================================================================== --- branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-22 04:53:05 UTC (rev 23061) +++ branches/SAMBA_4_0/source/torture/raw/openbench.c 2007-05-22 05:16:16 UTC (rev 23062) @@ -325,7 +325,6 @@ 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 @@ } 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]); }