src/hg/lib/hdb.c 1.396

1.396 2009/02/28 00:38:09 angie
Use the new sqlSetParanoid to enable extra stderr message if we fail to connect to the central database.
Index: src/hg/lib/hdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hdb.c,v
retrieving revision 1.395
retrieving revision 1.396
diff -b -B -U 4 -r1.395 -r1.396
--- src/hg/lib/hdb.c	18 Feb 2009 22:11:45 -0000	1.395
+++ src/hg/lib/hdb.c	28 Feb 2009 00:38:09 -0000	1.396
@@ -535,8 +535,9 @@
  * database and failing over if needed */
 {
 centralDb = cfgOption2("central", "db");
 centralCc = sqlConnCacheNewProfile("central");
+sqlSetParanoid(TRUE);
 struct sqlConnection *conn = sqlConnCacheMayAlloc(centralCc, centralDb);
 if ((conn == NULL) || !cartTablesOk(conn))
     {
     fprintf(stderr, "ASH: hConnectCentral failed over to backupcentral!  "
@@ -552,8 +553,9 @@
                  "settings in the hg.conf file and the databases they "
                  "specify.");
     }
 sqlConnCacheDealloc(centralCc, &conn);
+sqlSetParanoid(FALSE);
 }
 
 struct sqlConnection *hConnectCentral()
 /* Connect to central database where user info and other info