From 9723b18398d52f1e1e14581b9329cec72c3c5fdd Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Wed, 13 May 2009 16:10:18 +0000
Subject: [PATCH] documentation about the wait timeout in mysql causing future
 funcitons on the table to not work.

---
 src/database/mysql_common.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/database/mysql_common.c b/src/database/mysql_common.c
index 5a89a06a9bd..28a3402d059 100644
--- a/src/database/mysql_common.c
+++ b/src/database/mysql_common.c
@@ -511,6 +511,14 @@ extern int mysql_db_query(MYSQL *mysql_db, char *query)
 #ifdef MYSQL_NOT_THREAD_SAFE
 		slurm_mutex_unlock(&mysql_lock);
 #endif
+		/* FIXME: If we get ER_LOCK_WAIT_TIMEOUT here we need
+		to restart the connections, but it appears restarting
+		the calling program is the only way to handle this.
+		If anyone in the future figures out a way to handle
+		this, super.  Until then we will need to restart the
+		calling program if you ever get this error. 
+		*/
+
 		return SLURM_ERROR;
 	}
 
-- 
GitLab