Commit 316a759
committed
Fixed recording of query.
When running with concurrent streams, not all queries were recorded
successfully to the database like MySQL due to the timeToExit signal
channel being received first which would prematurely end the loop
that records the query to the database even though that resultChan
is not done receiving all the queries report yet.
Fix was to close the resultChan and modify the loop to allow for full
processing of the resultChan even if the timeToExit signal channel was
received.1 parent 7a3bce5 commit 316a759
1 file changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
186 | 195 | | |
187 | 196 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
191 | 202 | | |
192 | | - | |
193 | 203 | | |
194 | 204 | | |
195 | 205 | | |
| |||
0 commit comments