[asterisk-commits] seanbright: branch 1.6.2 r269010 - in /branches/1.6.2: ./ cdr/cdr_tds.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 8 10:46:01 CDT 2010
Author: seanbright
Date: Tue Jun 8 10:45:57 2010
New Revision: 269010
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269010
Log:
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 #17380)
Reported by: kkwong
Patches:
issue17380-01.patch uploaded by seanbright (license 71)
Tested by: kkwong
........
................
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/cdr/cdr_tds.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/cdr/cdr_tds.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/cdr/cdr_tds.c?view=diff&rev=269010&r1=269009&r2=269010
==============================================================================
--- branches/1.6.2/cdr/cdr_tds.c (original)
+++ branches/1.6.2/cdr/cdr_tds.c Tue Jun 8 10:45:57 2010
@@ -359,7 +359,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