File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ function run() {
53
53
$ this ->serv ->set ( array (
54
54
'worker_num ' =>$ this ->worker_num ,
55
55
'task_worker_num ' => $ this ->task_worker_num ,
56
+ 'task_max_request ' => 0 ,
56
57
'dispatch_mode ' => 2 ,
57
- //'daemonize'=>1
58
58
));
59
59
$ this ->serv ->on ('Start ' , array ($ this , 'onStart ' ));
60
60
$ this ->serv ->on ('ManagerStart ' , array ($ this , 'onManagerStart ' ));
Original file line number Diff line number Diff line change 10
10
$sql = "insert into `test` values ({$i},'pool{$i}') ";
11
11
$db->exec($sql);
12
12
*/
13
+ //try{
13
14
$ db ->beginTransaction ();
14
- for ($ i = 1 ; $ i <= 2 ; $ i ++) {
15
+ for ($ i = 1 ; $ i <= 3 ; $ i ++) {
15
16
$ sql = "insert into `test` values ( {$ i },'pool {$ i }') " ;
16
17
$ db ->exec ($ sql );
17
18
}
18
19
//$db->commit();
19
20
$ db ->rollBack ();
21
+ /*
22
+ } catch (Exception $e) {
23
+ print $e->getMessage();
24
+ exit();
25
+ }
26
+ */
20
27
// $db->release();
21
28
22
29
?>
You can’t perform that action at this time.
0 commit comments