[asterisk-dev] res/res_odbc.c
Nick Gorham
nick at lurcher.org
Mon Nov 5 11:12:39 CST 2007
Tilghman Lesher wrote:
>On Monday 05 November 2007 07:41, Nick Gorham wrote:
>
>
>>Tilghman Lesher wrote:
>>
>>
>>>On Monday 05 November 2007 03:49:16 Nick Gorham wrote:
>>>
>>>
>>>http://bugs.digium.com, but since you're already here, I need to ask the
>>>obvious question of: are you using "pooling=yes" in res_odbc.conf? That
>>>option should prevent this issue from occurring.
>>>
>>>
>>Yep, I am using "pooling=yes", and no it doesn't seem to stop it happening.
>>
>>Checking again in the code, I can't see anything that would stop it
>>happening with pooling set. The code in handle_cli_odbc_show() locks
>>odbc_list, then itterates down the list, calling ast_odbc_sanity_check()
>>on each connection. ast_odbc_sanity_check()() then allocates a statement
>>and runs its query. I cant see anything in that where there is anything
>>that syncronises the query with any other activity on the connection.
>>
>>
>
>Okay, fixed.
>
>
Just out of interest, when will those changes hit SVN, I will give them
a try.
--
Nick
More information about the asterisk-dev
mailing list