[asterisk-commits] seanbright: trunk r269007 - in /trunk: ./ cdr/cdr_tds.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 8 10:39:56 CDT 2010
Author: seanbright
Date: Tue Jun 8 10:39:52 2010
New Revision: 269007
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269007
Log:
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 #17380)
Reported by: kkwong
Patches:
issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong
........
Modified:
trunk/ (props changed)
trunk/cdr/cdr_tds.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/cdr/cdr_tds.c
URL: http://svnview.digium.com/svn/asterisk/trunk/cdr/cdr_tds.c?view=diff&rev=269007&r1=269006&r2=269007
==============================================================================
--- trunk/cdr/cdr_tds.c (original)
+++ trunk/cdr/cdr_tds.c Tue Jun 8 10:39:52 2010
@@ -357,7 +357,7 @@
goto failed;
}
- if (execute_and_consume(settings->dbproc, "SELECT 1 FROM [%s]", settings->table)) {
+ if (execute_and_consume(settings->dbproc, "SELECT 1 FROM [%s] WHERE 1 = 0", settings->table)) {
ast_log(LOG_ERROR, "Unable to find table '%s'\n", settings->table);
goto failed;
}
More information about the asterisk-commits
mailing list