Commit c7e7b7b7 authored by unknown's avatar unknown

Sleep for a little while in connect thread before trying to connect to MGM again


ndb/src/ndbapi/ndb_cluster_connection.cpp:
  Sleep in connect to MGM thread
parent 9a103039
...@@ -61,6 +61,9 @@ void Ndb_cluster_connection::connect_thread() ...@@ -61,6 +61,9 @@ void Ndb_cluster_connection::connect_thread()
printf("Ndb_cluster_connection::connect_thread error\n"); printf("Ndb_cluster_connection::connect_thread error\n");
DBUG_ASSERT(false); DBUG_ASSERT(false);
g_run_connect_thread= 0; g_run_connect_thread= 0;
} else {
// Wait before making a new connect attempt
NdbSleep_SecSleep(1);
} }
} while (g_run_connect_thread); } while (g_run_connect_thread);
if (m_connect_callback) if (m_connect_callback)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment