Commit a710c89
committed
Change such that when testing the connection on return due to error it skips trimming connections
That is, when returning a connection that has errored and it tests the connection to ensure it is valid it WAS also trimming the connection pool and with this change it will not perform that trim.
- Renames checkDataSource() -> heartBeat()
- Splits out testConnection() to a separate method
- Only call testConnection() in case of returning connection with forceClose (no trim here now)1 parent b617559 commit a710c89
File tree
1 file changed
+9
-5
lines changed- ebean-datasource/src/main/java/io/ebean/datasource/pool
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
377 | 381 | | |
378 | 382 | | |
379 | 383 | | |
| |||
561 | 565 | | |
562 | 566 | | |
563 | 567 | | |
564 | | - | |
| 568 | + | |
565 | 569 | | |
566 | 570 | | |
567 | 571 | | |
| |||
0 commit comments