Changeset - 454199409e36
[Not reviewed]
default
0 1 0
ethanzonca@protofusion.org - 16 years ago 2010-02-19 11:25:35
ethanzonca@protofusion.org
Added correct output for ping failure
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/server/mysql.c
Show inline comments
 
@@ -151,13 +151,13 @@ distrend_mysql_result_t mysqlQuery(distr
 
    fprintf(stderr, "warning, I was passed a bad struct distrend_mysql_conn...\n");
 

	
 
  /** make sure that connection is still alive
 
   */
 
  
 
  if(mysql_ping(conn->mysqlconn))
 
    fprintf(stderr, "MySQL Connection _was_ broken or may be broken, I'm not sure exactly what this return value means\n");
 
    fprintf(stderr, "MySQL connection broken, and reconnect is disabled!\n");
 

	
 

	
 
  fprintf(stderr,"Querying... ");
 
  if (mysql_query(conn->mysqlconn, query))
 
     fprintf(stderr, "%s\n", mysql_error(conn->mysqlconn));
 
  fprintf(stderr,"Queried!\n");
0 comments (0 inline, 0 general)