Debian Codegraph @

exp/lmdbpool/put.go

raw symbols SCIP
1 // +build !race
2
3 package lmdbpool
4
5 // In general we want Txn objects to be returned to the sync.Pool. But because
6 // the default behavior of Pool.Put during race detection is to drop everything
7 // on the floor. This isn't the end of world, but if the Txn finalizers don't
8 // don't run fast enough you can end up hitting the environment's limit on
9 // readers. This is still not terrible unless you run your benchmarks with
10 // race detection enabled. In such cases benchmarks issuing repeated reads
11 // will quickly blow the environments reader limit.
12 const returnTxnToPool = true