Subject | Hash | Author | Date (UTC) |
---|---|---|---|
events: when splitting an event we need a transaction | e685c800814365661b348c0d04aa8c0b3605ed7e | Catalin(ux) M. BOIE | 2020-08-21 04:35:17 |
Fix for a bug preventing partition table to be created in advance | 51049495934efa8c7bca710c6f2538f34bc4de9a | Catalin(ux) M. BOIE | 2020-08-20 04:03:49 |
cron fixes | 910c74f83740da015d654193025cd6433324a1da | Catalin(ux) M. BOIE | 2020-08-20 03:41:07 |
replaced 'slave' with 'part' | 348a2afcaedd77c7513b5e7dd05364f5e9ae7a87 | Catalin(ux) M. BOIE | 2020-08-20 03:40:43 |
Make cron tasks more resilient in case the machine is stopped | afbe8607b4608862787bf696f71027beb345701f | Catalin(ux) M. BOIE | 2020-08-19 06:08:34 |
Cosmetic | 21956573027d83eb45913b6bf30eeb57e602aea4 | Catalin(ux) M. BOIE | 2020-08-19 06:07:45 |
Added time of upload for artifacts | fd33fe0aeef09f66d74f3ec1554312a2fa5e2642 | Catalin(ux) M. BOIE | 2020-08-19 06:06:54 |
css fixes for table scroll | 77e486f3c9e3c9356985d3c21bc713d8a8d0e223 | Catalin(ux) M. BOIE | 2020-08-19 06:02:09 |
Added git repo size | 9828b1fe96e2217ead8863f7a7c0ee3599d16633 | Catalin(ux) M. BOIE | 2020-08-19 06:01:27 |
Change artifacts path to be able to compute correct sizes | efff16c88415dfca0a4b52981b44620e52778c03 | Catalin(ux) M. BOIE | 2020-08-19 05:56:17 |
Some state was not under transaction | fd51b92442fb83fc6941f94b22236f5014f0062c | Catalin(ux) M. BOIE | 2020-08-19 03:24:28 |
Added artifacts size to repos and users tables | 2a8469e3416e63e9bb21ba0e412583fc69fea115 | Catalin(ux) M. BOIE | 2020-08-19 03:23:58 |
No need to invalidate last part ts because we already check | 75cf0ae1721d9473bb8df780cc61f5c6247a7a6c | Catalin(ux) M. BOIE | 2020-08-19 03:20:19 |
Fixed some spaces in profiling | 929b95c5d842ffe306031f2ba99d23e435855155 | Catalin(ux) M. BOIE | 2020-08-18 07:11:30 |
Added a link to tutorials in the welcome mail | 2ef5795e53a26fdc1f9a2adda7bbf7a4f4ccb81f | Catalin(ux) M. BOIE | 2020-08-17 07:08:15 |
Change the mail goal | bffa2a1f9a4b185916b700b3e8455bbf6f7a82bf | Catalin(ux) M. BOIE | 2020-08-17 06:59:35 |
One of the tests was not ran | bb295b59daee2158c1a9c435a267d4d2377d36e9 | Catalin(ux) M. BOIE | 2020-08-17 06:47:52 |
Doc improvement | 039b77222a8fb6e38be0b9a35329c13f86c890af | Catalin(ux) M. BOIE | 2020-08-17 06:47:27 |
Fixed form generation test | b1ca5d96c15271fbe8a595a22227d15f917779dc | Catalin(ux) M. BOIE | 2020-08-17 06:46:56 |
Do not allow adding bugs if not logged in | 32db254689f7419fcea479985bbeff5cc579f7e7 | Catalin(ux) M. BOIE | 2020-08-17 06:45:46 |
File | Lines added | Lines deleted |
---|---|---|
inc/events.inc.php | 13 | 3 |
File inc/events.inc.php changed (mode: 100644) (index eea332a..191e2ae) | |||
... | ... | function rg_event_process($db, $ev_id, $event) | |
134 | 134 | . " event=" . rg_array2string($event)); | . " event=" . rg_array2string($event)); |
135 | 135 | ||
136 | 136 | $ret = FALSE; | $ret = FALSE; |
137 | $rollback = FALSE; | ||
137 | 138 | while (1) { | while (1) { |
138 | 139 | $category = $event['category']; | $category = $event['category']; |
139 | 140 | unset($event['category']); | unset($event['category']); |
140 | 141 | ||
141 | 142 | if (!isset($rg_event_split_functions[$category])) { | if (!isset($rg_event_split_functions[$category])) { |
142 | 143 | rg_event_set_error("Cannot find event function [cat=$category]!"); | rg_event_set_error("Cannot find event function [cat=$category]!"); |
143 | rg_log_ml("DEBUG: rg_event_split_functions=" | ||
144 | . print_r($rg_event_split_functions, TRUE)); | ||
145 | 144 | break; | break; |
146 | 145 | } | } |
147 | 146 | ||
... | ... | function rg_event_process($db, $ev_id, $event) | |
159 | 158 | break; | break; |
160 | 159 | } | } |
161 | 160 | ||
162 | // TODO: here we must do a transaction? | ||
161 | $r = rg_sql_begin($db); | ||
162 | if ($r !== TRUE) | ||
163 | break; | ||
164 | $rollback = TRUE; | ||
163 | 165 | ||
164 | 166 | $r = TRUE; | $r = TRUE; |
165 | 167 | foreach ($evs as $index => $ev) { | foreach ($evs as $index => $ev) { |
... | ... | function rg_event_process($db, $ev_id, $event) | |
170 | 172 | if ($r !== TRUE) | if ($r !== TRUE) |
171 | 173 | break; | break; |
172 | 174 | ||
175 | $r = rg_sql_commit($db); | ||
176 | if ($r !== TRUE) | ||
177 | break; | ||
178 | $rollback = FALSE; | ||
179 | |||
173 | 180 | $ret = TRUE; | $ret = TRUE; |
174 | 181 | break; | break; |
175 | 182 | } | } |
176 | 183 | ||
184 | if ($rollback) | ||
185 | rg_sql_rollback($db); | ||
186 | |||
177 | 187 | rg_log_exit(); | rg_log_exit(); |
178 | 188 | rg_prof_end("event_process"); | rg_prof_end("event_process"); |
179 | 189 | return $ret; | return $ret; |