CVSROOT: /cvs/cluster
Module name: cluster
Changes by: [EMAIL PROTECTED] 2007-08-23 19:13:54
Modified files:
dlm/tests/usertest: dlmtest2.c
Log message:
dstress fixes
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tests/usertest/dlmtest2.c.diff?cvsroot=cluster&r1=1.9&r2=1.10
--- cluster/dlm/tests/usertest/dlmtest2.c 2007/08/22 14:01:09 1.9
+++ cluster/dlm/tests/usertest/dlmtest2.c 2007/08/23 19:13:54 1.10
@@ -754,6 +754,7 @@
if (n && !(n % 60))
unlock_all();
+ n++;
i = rand_int(0, maxn-1);
lk = get_lock(i);
@@ -1309,6 +1310,8 @@
struct lk *lk;
int i, rv, maxi = 0, quit = 0;
+ srandom(time(NULL));
+
decode_arguments(argc, argv);
if (maxn < maxr) {