Commit e4485562 authored by Leigh Stoller's avatar Leigh Stoller

Minor fixes.

parent c0e22f8f
......@@ -1211,7 +1211,7 @@ sub DoApprove()
my $creator = $dataset->GetCreator();
my $response = $dataset->ApproveDataset();
if (GeniResponse::IsExpired($response)) {
if (GeniResponse::IsError($response)) {
$dataset->Unlock();
ExitWithError($response);
}
......
......@@ -1103,11 +1103,13 @@ sub DumpDBGoo()
my $extraopts = "";
my $sqlversion = `/usr/local/bin/mysql_config --version`;
chomp($sqlversion);
if ($sqlversion =~ /^(\d+\.\d+)\.\d+$/) {
$sqlversion = $1;
}
if ($sqlversion >= 5) {
$extraopts .= " --skip-quote-names";
}
if ($sqlversion >= 5.8) {
if ($sqlversion >= 5.7) {
$extraopts .= " --compact --set-gtid-purged=OFF";
}
#
......
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