Skip to content
Snippets Groups Projects
Commit 2d67a1c1 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Avoid race during buffer fill/read.

parent 44d233d2
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,7 @@ class conxiin {
if(fillread) {
array cid=callout(gottimeout,timeout);
Thread.MutexKey lock=fillreadmux->lock();
if(!sizeof(this))
fillread.wait(lock);
lock=0;
local_backend->remove_call_out(cid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment