Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
postgres connection pool: fix race when a connection is already acqui…
…red while pool is still being constructed
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1e96813
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering - was that a windows issue? From what I read the static variable initialization should be thread-safe with GCC, but not so with VC++
1e96813
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure. But it that the case the 'fix' is probably not real one and c550af2 is a better fix. It isn't reliably reproducable.