Bug #16403186 - MTR ON WINDOWS SHOULD NOT TRY TO START CDB IF RUNNING WITH PARALLEL
This commit is contained in:
parent
298bfa4078
commit
af0e25725e
@ -1,5 +1,5 @@
|
|||||||
# -*- cperl -*-
|
# -*- cperl -*-
|
||||||
# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -255,13 +255,17 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
sub show {
|
sub show {
|
||||||
my ($class, $core_name, $exe_mysqld)= @_;
|
my ($class, $core_name, $exe_mysqld, $parallel)= @_;
|
||||||
$hint_mysqld= $exe_mysqld;
|
$hint_mysqld= $exe_mysqld;
|
||||||
|
|
||||||
# On Windows, rely on cdb to be there...
|
# On Windows, rely on cdb to be there...
|
||||||
if (IS_WINDOWS)
|
if (IS_WINDOWS)
|
||||||
{
|
{
|
||||||
_cdb($core_name);
|
# Starting cdb is unsafe when used with --parallel > 1 option
|
||||||
|
if ( $parallel < 2 )
|
||||||
|
{
|
||||||
|
_cdb($core_name);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
# -*- cperl -*-
|
# -*- cperl -*-
|
||||||
|
|
||||||
# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -641,7 +641,7 @@ sub run_test_server ($$$) {
|
|||||||
mtr_report(" - found '$core_name'",
|
mtr_report(" - found '$core_name'",
|
||||||
"($num_saved_cores/$opt_max_save_core)");
|
"($num_saved_cores/$opt_max_save_core)");
|
||||||
|
|
||||||
My::CoreDump->show($core_file, $exe_mysqld);
|
My::CoreDump->show($core_file, $exe_mysqld, $opt_parallel);
|
||||||
|
|
||||||
if ($num_saved_cores >= $opt_max_save_core) {
|
if ($num_saved_cores >= $opt_max_save_core) {
|
||||||
mtr_report(" - deleting it, already saved",
|
mtr_report(" - deleting it, already saved",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user