[asterisk-dev] res/res_odbc.c

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon Nov 5 12:26:54 CST 2007


On Monday 05 November 2007 11:12, Nick Gorham wrote:
> 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.

Shouldn't be any lag at all until the changes hit the public SVN mirror.

-- 
Tilghman



More information about the asterisk-dev mailing list