[asterisk-bugs] [Asterisk 0017380]: [patch] long waiting (over 2 min) for cdr_tds running "SELECT 1 FROM cdr" when asterisk starting with aournd 3mil cdr in table
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jun 8 10:28:49 CDT 2010
The following issue has been RESOLVED.
======================================================================
https://issues.asterisk.org/view.php?id=17380
======================================================================
Reported By: kkwong
Assigned To: seanbright
======================================================================
Project: Asterisk
Issue ID: 17380
Category: CDR/cdr_tds
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Asterisk Version: 1.4.31
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2010-05-24 06:27 CDT
Last Modified: 2010-06-08 10:28 CDT
======================================================================
Summary: [patch] long waiting (over 2 min) for cdr_tds
running "SELECT 1 FROM cdr" when asterisk starting with aournd 3mil cdr in table
Description:
we are testing asterisk 1.4.31 to replace old 1.2x box, when start then new
1.4.31 box with "asterisk -cvvvv" it stop at
"== Parsing '/etc/asterisk/cdr_tds.conf': Found"
for more then 2 min and from sql profiler shows it running the query
"SELECT 1 FROM cdr"
======================================================================
----------------------------------------------------------------------
(0123123) svnbot (reporter) - 2010-06-08 10:28
https://issues.asterisk.org/view.php?id=17380#c123123
----------------------------------------------------------------------
Repository: asterisk
Revision: 269006
U branches/1.4/cdr/cdr_tds.c
------------------------------------------------------------------------
r269006 | seanbright | 2010-06-08 10:28:48 -0500 (Tue, 08 Jun 2010) | 11
lines
Reduce startup time for cdr_tds with large CDR tables.
Since we are just checking for table existence, add a WHERE clause that
will
return no rows but will raise an error if the table doesn't exist.
(closes issue https://issues.asterisk.org/view.php?id=17380)
Reported by: kkwong
Patches:
issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=269006
Issue History
Date Modified Username Field Change
======================================================================
2010-06-08 10:28 svnbot Checkin
2010-06-08 10:28 svnbot Note Added: 0123123
2010-06-08 10:28 svnbot Status assigned => resolved
2010-06-08 10:28 svnbot Resolution open => fixed
======================================================================
More information about the asterisk-bugs
mailing list