| 1 | //+build race |
| 2 | |
| 3 | package lmdbpool |
| 4 | |
| 5 | // transactions abort immediately instead of "being put in the pool" when race |
| 6 | // detection is enabled to prevent benchmarks with race enabled from forcing |
| 7 | // applications to allow ridiculously large maximum numbers of readers. |
| 8 | // |
| 9 | // As of go1.8 the sync.Pool implementation never reuses objects during race |
| 10 | // detection. The special logic which bypasses this requires a similar bypass |
| 11 | // here, unfortunately. |
| 12 | const returnTxnToPool = false |