Skip to content

Commit 958a204

Browse files
committed
Merge branch 'bkemain' into 'oramain'
Bkemain See merge request rwp/rwloadsim!33
2 parents 363266a + e45dd21 commit 958a204

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+5114
-4417
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# RWP\*Load Simulator Release Notes
22

3-
## 3.1.4
3+
## 3.2.0
44

55
* Bug fixes
66
* -Dsrc will show source line of all debug messages
@@ -9,6 +9,8 @@
99
* Bit set/clear assignments
1010
* session pool can set max usage count and max lifetime
1111
* dbsecounds() and ociseconds() functions
12+
* procedures can be called without ( ) just like in bash
13+
* Output from tests are based on database version 21.16
1214

1315
## 3.1.3
1416

demo/massinsert.rwl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ integer thrcount := 3;
55
procedure massinsert()
66
# just busy loop insorder()
77
for count runcount loop
8-
insorder();
8+
insorder;
99
end;
1010
end;
1111

1212
run
1313

1414
threads thrcount # start 20 threads
1515
at demouser # Using this database
16-
massinsert();
17-
showcounts();
16+
massinsert;
17+
showcounts;
1818
end;
1919

2020
end;
2121

22-
showcounts(); # to show total
22+
showcounts; # to show total
2323

demo/runsimple.rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ procedure someinserts()
1212
end;
1313
end;
1414

15-
someinserts();
15+
someinserts;
1616

1717
printline "inserted", totalrows;

demo/runsimple2.rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ end;
1313
# background in the shell with a wait at then end
1414
run
1515
threads 10
16-
someinserts();
16+
someinserts;
1717
end;
1818
end;
1919

demo/runsimple3.rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end;
2020
# a session from the pool
2121
run
2222
threads numthreads at rwlpool
23-
someinserts();
23+
someinserts;
2424
end;
2525
end;
2626

demo/runsimulation.rwl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ run
3535
every erlang2(0.05) # simulate arrival rate of 20 per second
3636
stop totaltime # this many times
3737
loop
38-
doeither(); # executing this
38+
doeither; # executing this
3939
end;
4040
end;
4141

@@ -44,15 +44,15 @@ run
4444
at awruser
4545
# begin 5 seconds into run
4646
wait(5);
47-
beginawr();
47+
beginawr;
4848
# end 5 seconds before finish
49-
wait(totaltime-runseconds-5);
50-
makeawr();
49+
wait(totaltime-runseconds()-5);
50+
makeawr;
5151
end;
5252
end;
5353

54-
showcounts(); # to show total
55-
qshowcounts(); # to show total
56-
cshowcounts(); # to show total
54+
showcounts; # to show total
55+
qshowcounts; # to show total
56+
cshowcounts; # to show total
5757

5858
printline "runnumber:", runnumber;

demo/sample1.rwl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ integer i; # declarations can come anywhere
1818

1919
procedure runten()
2020
for i := 1 .. 10 loop # do something ten times
21-
setab();
22-
add(a,b);
21+
setab;
22+
add a,b;
2323
end;
2424
end;
2525

demo/simpleinsert.rwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ procedure doinsert()
3131
end;
3232

3333
# actually execute the procedure
34-
doinsert();
34+
doinsert;

demo/testquery.rwl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
selorder();
2-
qshowcounts();
1+
selorder;
2+
qshowcounts;
33

4-
qcomplex();
4+
qcomplex;
55

66
procedure getorders()
77
for wait 0.5 stop 5 loop
8-
selorder();
8+
selorder;
99
end;
1010
end;
1111

1212
procedure getqs()
1313
for every 1.0 stop 4 loop
14-
qcomplex();
14+
qcomplex;
1515
end;
1616
end;
1717

1818
run
1919
threads 2
20-
getorders();
21-
qshowcounts();
20+
getorders;
21+
qshowcounts;
2222
end;
2323
threads 1
24-
getqs();
25-
cshowcounts();
24+
getqs;
25+
cshowcounts;
2626
end;
2727
end;
2828

29-
qshowcounts();
30-
cshowcounts();
29+
qshowcounts;
30+
cshowcounts;
3131

3232
procedure showrun()
3333
if runnumber is not null then
3434
printline "This was runnumber:", runnumber;
3535
end;
3636
end;
3737

38-
showrun();
38+
showrun;
3939

docs/ATCLAUSE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ This mechanism applies in the following cases of the use of an at
2525
clause outside a declared procedure or function, i.e. directly at the
2626
"top level" of your rwloadsim code:
2727

28-
* procedurecall() at database;
28+
* procedurecall at database;
2929
* sqlstatement at database;
30-
* execute at database; ... end;
30+
* execute at database ... end;
3131

3232
When any of these is found directly in your main program, a database
3333
session will be acquired, the code will be executed and the session
@@ -89,9 +89,9 @@ procedure copytodest()
8989
commit; # always against the effective database in use
9090
end;
9191
92-
copytodest() at destdb;
92+
copytodest at destdb;
9393
```
94-
When the procedure copytodest() is being called at the last line above,
94+
When the procedure copytodest is being called at the last line above,
9595
the named database (destdb) is being used during the call.
9696
Inside the procedure, a cursor loop is being executed selecting rows
9797
from the named database (sourcedb), and for each row returned, the SQL

0 commit comments

Comments
 (0)