Commit caf38a02 authored by Tatiana A. Nurnberg's avatar Tatiana A. Nurnberg

auto-merge

parents ba6bd996 355b0405
...@@ -142,6 +142,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command, ...@@ -142,6 +142,8 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
if (!skip_check) if (!skip_check)
result= thd->is_error() ? -1 : 0; result= thd->is_error() ? -1 : 0;
thd->mysys_var= 0;
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER) #if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
thd->profiling.finish_current_query(); thd->profiling.finish_current_query();
#endif #endif
...@@ -634,6 +636,7 @@ void *create_embedded_thd(int client_flag) ...@@ -634,6 +636,7 @@ void *create_embedded_thd(int client_flag)
thread_count++; thread_count++;
threads.append(thd); threads.append(thd);
thd->mysys_var= 0;
return thd; return thd;
err: err:
delete(thd); delete(thd);
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
# new wrapper t/concurrent_innodb_safelog.test # new wrapper t/concurrent_innodb_safelog.test
# #
--source include/not_embedded.inc
connection default; connection default;
# #
# Show prerequisites for this test. # Show prerequisites for this test.
......
...@@ -493,6 +493,7 @@ sub collect_one_suite($) ...@@ -493,6 +493,7 @@ sub collect_one_suite($)
$lib_innodb_plugin) $lib_innodb_plugin)
{ {
my @new_cases; my @new_cases;
my $sep= (IS_WINDOWS) ? ';' : ':';
foreach my $test (@cases) foreach my $test (@cases)
{ {
...@@ -520,12 +521,13 @@ sub collect_one_suite($) ...@@ -520,12 +521,13 @@ sub collect_one_suite($)
} }
} }
my $plugin_filename= basename($lib_innodb_plugin); my $plugin_filename= basename($lib_innodb_plugin);
my $plugin_list= "innodb=$plugin_filename" . $sep . "innodb_locks=$plugin_filename";
push(@{$new_test->{master_opt}}, '--ignore-builtin-innodb'); push(@{$new_test->{master_opt}}, '--ignore-builtin-innodb');
push(@{$new_test->{master_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin)); push(@{$new_test->{master_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin));
push(@{$new_test->{master_opt}}, "--plugin_load=innodb=$plugin_filename;innodb_locks=$plugin_filename"); push(@{$new_test->{master_opt}}, "--plugin_load=$plugin_list");
push(@{$new_test->{slave_opt}}, '--ignore-builtin-innodb'); push(@{$new_test->{slave_opt}}, '--ignore-builtin-innodb');
push(@{$new_test->{slave_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin)); push(@{$new_test->{slave_opt}}, '--plugin-dir=' . dirname($lib_innodb_plugin));
push(@{$new_test->{slave_opt}}, "--plugin_load=innodb=$plugin_filename;innodb_locks=$plugin_filename"); push(@{$new_test->{slave_opt}}, "--plugin_load=$plugin_list");
if ($new_test->{combination}) if ($new_test->{combination})
{ {
$new_test->{combination}.= ' + InnoDB plugin'; $new_test->{combination}.= ' + InnoDB plugin';
......
...@@ -1812,7 +1812,7 @@ sub environment_setup { ...@@ -1812,7 +1812,7 @@ sub environment_setup {
($lib_example_plugin ? dirname($lib_example_plugin) : ""); ($lib_example_plugin ? dirname($lib_example_plugin) : "");
$ENV{'HA_EXAMPLE_SO'}="'".$plugin_filename."'"; $ENV{'HA_EXAMPLE_SO'}="'".$plugin_filename."'";
$ENV{'EXAMPLE_PLUGIN_LOAD'}="--plugin_load=;EXAMPLE=".$plugin_filename.";"; $ENV{'EXAMPLE_PLUGIN_LOAD'}="--plugin_load=EXAMPLE=".$plugin_filename;
} }
# ---------------------------------------------------- # ----------------------------------------------------
......
...@@ -1873,7 +1873,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond) ...@@ -1873,7 +1873,7 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
tmp->mysys_var->current_cond ? tmp->mysys_var->current_cond ?
"Waiting on cond" : NullS); "Waiting on cond" : NullS);
#else #else
val= (char *) "Writing to net"; val= (char *) (tmp->proc_info ? tmp->proc_info : NullS);
#endif #endif
if (val) if (val)
{ {
......
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