[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:45:57 CDT 2010
A NOTE has been added to this issue.
======================================================================
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: closed
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:45 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"
======================================================================
----------------------------------------------------------------------
(0123134) svnbot (reporter) - 2010-06-08 10:45
https://issues.asterisk.org/view.php?id=17380#c123134
----------------------------------------------------------------------
Repository: asterisk
Revision: 269010
_U branches/1.6.2/
U branches/1.6.2/cdr/cdr_tds.c
------------------------------------------------------------------------
r269010 | seanbright | 2010-06-08 10:45:57 -0500 (Tue, 08 Jun 2010) | 25
lines
Merged revisions 269007 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r269007 | seanbright | 2010-06-08 11:39:52 -0400 (Tue, 08 Jun 2010) | 18
lines
Merged revisions 269006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r269006 | seanbright | 2010-06-08 11:28:49 -0400 (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=269010
Issue History
Date Modified Username Field Change
======================================================================
2010-06-08 10:45 svnbot Checkin
2010-06-08 10:45 svnbot Note Added: 0123134
======================================================================
More information about the asterisk-bugs
mailing list