summaryrefslogtreecommitdiff
path: root/src/common/core.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-02-03 12:25:53 -0200
committershennetsind <ind@henn.et>2013-02-03 12:25:53 -0200
commita4a549da77879c142ed9fe667ed312dfa6e6b70a (patch)
treef15b1a8fcc612a49dada9964ce8549ea5346d609 /src/common/core.c
parent125b75890b29073b0264009e9638e68911a1aa07 (diff)
downloadhercules-a4a549da77879c142ed9fe667ed312dfa6e6b70a.tar.gz
hercules-a4a549da77879c142ed9fe667ed312dfa6e6b70a.tar.bz2
hercules-a4a549da77879c142ed9fe667ed312dfa6e6b70a.tar.xz
hercules-a4a549da77879c142ed9fe667ed312dfa6e6b70a.zip
Introducing MySQL Reconnect
* mysql_reconnect_type ** 1: when mysql disconnects during runtime, the server tries to reconnect mysql_reconnect_count times and, if unsuccessful, the server is shut down ** 2: when mysql disconnects during runtime it tries to reconnect indefinitely mysql_reconnect_type:2 * mysql_reconnect_count ** number of reconnect attempts the server should do when the database disconnects during runtime ** only used when mysql_reconnect_type is 1 mysql_reconnect_count:1 ~Ind Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common/core.c')
-rw-r--r--src/common/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/core.c b/src/common/core.c
index 1e3dbb3d7..bb536a255 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -11,6 +11,7 @@
#include "../common/timer.h"
#include "../common/thread.h"
#include "../common/mempool.h"
+#include "../common/sql.h"
#endif
#include <stdio.h>
@@ -319,6 +320,7 @@ int main (int argc, char **argv)
display_title();
usercheck();
+ Sql_Init();
rathread_init();
mempool_init();
db_init();