summaryrefslogtreecommitdiff
path: root/libmysqld/libmysqld.c
diff options
context:
space:
mode:
authorhf@deer.(none) <>2003-12-18 15:51:22 +0400
committerhf@deer.(none) <>2003-12-18 15:51:22 +0400
commit42799cc584c29f513cf3d3f957addd1c44f704d0 (patch)
tree2785059bf0f530b8d1cff70378904178e52fb05e /libmysqld/libmysqld.c
parent2b53eef5f00364464652847065a81a32571cc73f (diff)
downloadmariadb-git-42799cc584c29f513cf3d3f957addd1c44f704d0.tar.gz
Fix for #2126 (mysql_server_init call shouldn't be needed)
now mysql_server_init is called from mysql_init with fake parameters mysql_once_init code included to mysql_server_init. embedded-specific initialization is in init_embedded_server function
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r--libmysqld/libmysqld.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c
index 59c18368279..f96c06ff0f6 100644
--- a/libmysqld/libmysqld.c
+++ b/libmysqld/libmysqld.c
@@ -163,20 +163,12 @@ mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
db ? db : "(Null)",
user ? user : "(Null)"));
-#if defined(EMBEDDED_LIBRARY) || !defined(DBUG_OFF)
- if (!server_inited)
- {
- mysql->net.last_errno=CR_MYSQL_SERVER_INIT_MISSED;
- strmov(mysql->net.last_error,ER(mysql->net.last_errno));
- goto error;
- }
-#endif
-
if (mysql->options.methods_to_use == MYSQL_OPT_USE_REMOTE_CONNECTION ||
(mysql->options.methods_to_use == MYSQL_OPT_GUESS_CONNECTION &&
host && strcmp(host,LOCAL_HOST)))
- cli_mysql_real_connect(mysql, host, user,
- passwd, db, port, unix_socket, client_flag);
+ DBUG_RETURN(cli_mysql_real_connect(mysql, host, user,
+ passwd, db, port,
+ unix_socket, client_flag));
mysql->methods= &embedded_methods;