]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix column duplication bug in module reload for cdr_pgsql.
authorJonathan Rose <jrose@digium.com>
Tue, 7 Feb 2012 15:19:51 +0000 (15:19 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 7 Feb 2012 15:19:51 +0000 (15:19 +0000)
commit72125d4a56905c232ff0a161dfbadacbabe52957
tree38ff1af42ce2e141b178bc398b0af6f98c0eb1cc
parente4d579711d355c77b306c91b5a8387a6343bd24b
Fix column duplication bug in module reload for cdr_pgsql.

Prior to this patch, attempts to reload cdr_pgsql.so would cause the column list to keep
its current data and then add a second copy during the reload. This would cause attempts
to log the CDR to the database to fail. This patch also cleans up some unnecessary null
checks for ast_free and deals with a few potential locking problems.

(closes issue ASTERISK-19216)
Reported by: Jacek Konieczny
Review: https://reviewboard.asterisk.org/r/1711/
........

Merged revisions 354263 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@354270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
cdr/cdr_pgsql.c