summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@sun.com>2010-01-06 22:42:07 -0700
committerMarc Alff <marc.alff@sun.com>2010-01-06 22:42:07 -0700
commita4c3bc618bb83884a19dc157bc56d4e3d2432c22 (patch)
treeea8cbc9d70015a17aad75df30e7d223476eaa4da /libmysqld
parentb2b055034c065307fca4dc04d00ce0c139b44808 (diff)
downloadmariadb-git-a4c3bc618bb83884a19dc157bc56d4e3d2432c22.tar.gz
WL#2360 Performance schema
Part IV: sql instrumentation
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 2a425edb379..d56ada00266 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -501,7 +501,19 @@ int init_embedded_server(int argc, char **argv, char **groups)
*/
logger.init_base();
- if (init_common_variables("my", *argcp, *argvp, (const char **)groups))
+ orig_argc= *argcp;
+ orig_argv= *argvp;
+ load_defaults("my", (const char **)groups, argcp, argvp);
+ defaults_argc= *argcp;
+ defaults_argv= *argvp;
+ remaining_argc= argc;
+ remaining_argv= argv;
+
+ /* Must be initialized early for comparison of options name */
+ system_charset_info= &my_charset_utf8_general_ci;
+ sys_var_init();
+
+ if (init_common_variables())
{
mysql_server_end();
return 1;