summaryrefslogtreecommitdiffstats
path: root/common/queryrunner.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-03 15:34:35 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-03 16:11:38 +0100
commit9fa528c5fceefd53303a604625d13cf0cdbb109e (patch)
tree8f5d6c64300f54af1c6d3afcf5ba8b0cd82a4492 /common/queryrunner.cpp
parent46bf82eaec0a30281d0b8deaf1ffbd06030eb997 (diff)
downloadsink-9fa528c5fceefd53303a604625d13cf0cdbb109e.tar.gz
sink-9fa528c5fceefd53303a604625d13cf0cdbb109e.zip
Use read-write locks for finer grained control to sDbi and sEnvironments
There are only a few cases where have to access the list of dbis or environments, so we can normally get away with just read-locking. This seems to fix a segfault that was possibly caused be an environment being reused that has already been freed in another thread. The read-only lock when initially retrieving the environment seems to fix that.
Diffstat (limited to 'common/queryrunner.cpp')
0 files changed, 0 insertions, 0 deletions