Summary:ASTERISK-17811: [patch] find_table does not take pgsql_lock before using pgsqlConn
Reporter:Byron Clark (byronclark)Labels:
Date Opened:2011-05-05 15:23:44Date Closed:2011-07-26 13:03:37
Versions:Frequency of
Environment:Attachments:( 0) pgsql_find_table_locking.patch
Description:We saw crashes from a corrupted pgsqlConn when find_table used the connection when another method (which did lock) used the connection simultaneously.

The attached patch (against 1.8 svn) adds locking to the find_table function.

It looks like trunk is still missing the locking in find_table, but the code there is pretty different.
Comments:By: Byron Clark (byronclark) 2011-07-26 10:12:31.422-0500

It appears that this patch was applied for the 1.8 branch in r323730, but the commit never made it to JIRA to close the issue.

By: Jonathan Rose (jrose) 2011-07-26 13:03:37.033-0500

Closed clone on June 15, closing here.