Compare commits

...

5 Commits

Author SHA1 Message Date
Carlos Salguero
ad47da9089 Merge branch 'PT-2128_Set_version_3.5' into release-3.5.0 2022-11-25 11:19:12 -03:00
Carlos Salguero
52724b50e4 PT-2128 Updated version to 3.5.0 2022-11-25 09:32:59 -03:00
EvgeniyPatlan
04f92bdd08 Merge pull request #561 from EvgeniyPatlan/release-3.5.0
PT-2076 add rhel9 dependency
2022-11-21 12:16:59 +02:00
EvgeniyPatlan
2d604a5f50 PT-2076 add rhel9 dependency 2022-11-21 11:33:40 +02:00
svetasmirnova
3dc75580d8 Changelog and version for Release 3.5.0 2022-11-18 17:30:58 +03:00
46 changed files with 159 additions and 125 deletions

View File

@@ -1,5 +1,25 @@
Changelog for Percona Toolkit
* Improvement PT-1052: Include NUMA information in pt-tool output
* Improvement PT-1926: pt-k8s-debug-collector should not collect passwords
* Improvement PT-2033: Avoid running same query concurrently from pt-stalk
* Improvement PT-2105: Let pt-k8-debug-collector to collect individual logs in PXC pods in addition to `kubectl logs`
* Improvement PT-2107: Merge Community PRs 466, 298, 58, 53 into 3.x
* Improvement PT-2080: Add JSON logging to pt-kill (Thanks dm-2)
* Improvement PT-2091: Migrate docs to Render
* Fixed bug PT-1739: disable-qrt-plugin option of pt-table-checksum is broken (Thanks E. Souhrada)
* Fixed bug PT-1799: pt-osc + PTDEBUG=1 fails with Use of uninitialized value in concatenation (.) or string at /usr/bin/pt-online-schema-change line 4270
* Fixed bug PT-1897: pt-stalk on MySQL 8 not collecting "lock" information
* Fixed bug PT-1959: go part of the toolkit still has the version 3.3.0
* Fixed bug PT-2075: Fix tests for pt-stalk, so they can work with 8.0
* Fixed bug PT-2092: Improper version of protobuf in go.sum
* Fixed bug PT-2125: Documentation outdated or missed for tools, written in Go
* Fixed bug PT-2086: Typos (Thanks Iwo Panowicz)
* Fixed bug PR-553: Fix some typos in documentation of pt-query-digest (Thanks Christian Bartolomäus)
* Fixed bug PR-53: Docs table regex (Thanks Daniël van Eeden)
* Fixed bug PR-58: Correcting specified package type in error message (Thanks Daniel Hoherd)
* Fixed bug PR-298: Fix typo (Thanks Moritz Lenz)
v3.4.0 release 2022-07-11
* New Tool PT-1978: Add reporting on unused/redundant indexes for MongoDB by pt-mongodb-summary

View File

@@ -2,7 +2,7 @@ use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Percona::Toolkit',
VERSION => '3.4.0',
VERSION => '3.5.0',
EXE_FILES => [ <bin/*> ],
MAN1PODS => {
'docs/percona-toolkit.pod' => 'blib/man1/percona-toolkit.1p',

View File

@@ -1364,6 +1364,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-align 3.4.0
pt-align 3.5.0
=cut

View File

@@ -37,15 +37,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -8661,6 +8661,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-archiver 3.4.0
pt-archiver 3.5.0
=cut

View File

@@ -35,15 +35,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5917,6 +5917,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-config-diff 3.4.0
pt-config-diff 3.5.0
=cut

View File

@@ -34,15 +34,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5710,6 +5710,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-deadlock-logger 3.4.0
pt-deadlock-logger 3.5.0
=cut

View File

@@ -30,15 +30,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5684,6 +5684,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-diskstats 3.4.0
pt-diskstats 3.5.0
=cut

View File

@@ -31,15 +31,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5771,6 +5771,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-duplicate-key-checker 3.4.0
pt-duplicate-key-checker 3.5.0
=cut

View File

@@ -1653,6 +1653,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fifo-split 3.4.0
pt-fifo-split 3.5.0
=cut

View File

@@ -27,15 +27,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -5132,6 +5132,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-find 3.4.0
pt-find 3.5.0
=cut

View File

@@ -2262,6 +2262,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fingerprint 3.4.0
pt-fingerprint 3.5.0
=cut

View File

@@ -29,15 +29,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -4693,6 +4693,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-fk-error-logger 3.4.0
pt-fk-error-logger 3.5.0
=cut

View File

@@ -36,15 +36,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7394,6 +7394,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-heartbeat 3.4.0
pt-heartbeat 3.5.0
=cut

View File

@@ -37,15 +37,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -7705,6 +7705,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-index-usage 3.4.0
pt-index-usage 3.5.0
=cut

View File

@@ -1133,7 +1133,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-ioprofile 3.4.0
pt-ioprofile 3.5.0
=cut

View File

@@ -39,15 +39,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -8666,6 +8666,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-kill 3.4.0
pt-kill 3.5.0
=cut

View File

@@ -809,7 +809,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-mext 3.4.0
pt-mext 3.5.0
=cut

View File

@@ -3296,7 +3296,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-mysql-summary 3.4.0
pt-mysql-summary 3.5.0
=cut

View File

@@ -48,15 +48,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -13469,6 +13469,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-online-schema-change 3.4.0
pt-online-schema-change 3.5.0
=cut

View File

@@ -901,7 +901,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-pmp 3.4.0
pt-pmp 3.5.0
=cut

View File

@@ -56,15 +56,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -16977,6 +16977,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-query-digest 3.4.0
pt-query-digest 3.5.0
=cut

View File

@@ -2618,6 +2618,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-show-grants 3.4.0
pt-show-grants 3.5.0
=cut

View File

@@ -1250,7 +1250,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-sift 3.4.0
pt-sift 3.5.0
=cut

View File

@@ -32,15 +32,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -4993,6 +4993,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-delay 3.4.0
pt-slave-delay 3.5.0
=cut

View File

@@ -4528,6 +4528,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-find 3.4.0
pt-slave-find 3.5.0
=cut

View File

@@ -33,15 +33,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -6164,6 +6164,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-slave-restart 3.4.0
pt-slave-restart 3.5.0
=cut

View File

@@ -2552,7 +2552,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-stalk 3.4.0
pt-stalk 3.5.0
=cut

View File

@@ -2769,7 +2769,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-summary 3.4.0
pt-summary 3.5.0
=cut

View File

@@ -11,7 +11,6 @@ use warnings FATAL => 'all';
# in this file. Setting %INC to this file for each module makes Perl aware
# of this so it will not try to load the module from @INC. See the tool's
# documentation for a full list of dependencies.
BEGIN {
$INC{$_} = __FILE__ for map { (my $pkg = "$_.pm") =~ s!::!/!g; $pkg } (qw(
Percona::Toolkit
@@ -51,15 +50,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -14197,6 +14196,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-checksum 3.4.0
pt-table-checksum 3.5.0
=cut

View File

@@ -47,15 +47,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -13101,6 +13101,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-sync 3.4.0
pt-table-sync 3.5.0
=cut

View File

@@ -8519,6 +8519,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-table-usage 3.4.0
pt-table-usage 3.5.0
=cut

View File

@@ -53,15 +53,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -11454,6 +11454,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-upgrade 3.4.0
pt-upgrade 3.5.0
=cut

View File

@@ -36,15 +36,15 @@ BEGIN {
# ###########################################################################
# Percona::Toolkit package
# This package is a copy without comments from the original. The original
# with comments and its test file can be found in the Bazaar repository at,
# with comments and its test file can be found in the GitHub repository at,
# lib/Percona/Toolkit.pm
# t/lib/Percona/Toolkit.t
# See https://launchpad.net/percona-toolkit for more information.
# See https://github.com/percona/percona-toolkit for more information.
# ###########################################################################
{
package Percona::Toolkit;
our $VERSION = '3.3.2';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';
@@ -6262,6 +6262,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-variable-advisor 3.4.0
pt-variable-advisor 3.5.0
=cut

View File

@@ -3308,6 +3308,6 @@ Place, Suite 330, Boston, MA 02111-1307 USA.
=head1 VERSION
pt-visual-explain 3.4.0
pt-visual-explain 3.5.0
=cut

View File

@@ -15,6 +15,9 @@ BuildArch: x86_64
BuildRequires: perl(ExtUtils::MakeMaker) make
Requires: perl(DBI) >= 1.13, perl(DBD::mysql) >= 1.0, perl(Time::HiRes), perl(IO::Socket::SSL), perl(Digest::MD5), perl(Term::ReadKey)
%if 0%{?rhel} > 9
Requires: perl(English)
%endif
AutoReq: no
%description

View File

@@ -18,7 +18,7 @@
# ###########################################################################
package Percona::Toolkit;
our $VERSION = '3.4.0';
our $VERSION = '3.5.0';
use strict;
use warnings FATAL => 'all';

View File

@@ -1,6 +1,7 @@
package proto
// ProfilerStatus is a struct to hold the results of db.getProfilingLevel()
//
// var ps proto.ProfilerStatus
// err := db.Run(bson.M{"profile": -1}, &ps)
type ProfilerStatus struct {

View File

@@ -185,6 +185,7 @@ func GetHostnames(ctx context.Context, client *mongo.Client) ([]string, error) {
/*
"members" : [
{
"_id" : 0,
"name" : "localhost:17001",
@@ -211,8 +212,11 @@ func buildHostsListFromReplStatus(replStatus proto.ReplicaSetStatus) []string {
return hostnames
}
/* Example
/*
Example
mongos> db.getSiblingDB('admin').runCommand('getShardMap')
{
"map" : {
"config" : "localhost:19001,localhost:19002,localhost:19003",

View File

@@ -316,7 +316,6 @@ type crSecrets struct {
func (d *Dumper) getIndividualFiles(resource, namespace string, podName, path, location string, tw *tar.Writer) error {
args := []string{"-n", namespace, "cp", podName + ":" + path, "/dev/stdout"}
output, err := d.runCmd(args...)
if err != nil {
d.logError(err.Error(), args...)
log.Printf("Error: get path %s for resource %s in namespace %s: %v", path, resource, d.namespace, err)

View File

@@ -2,11 +2,12 @@ package main
import (
"bytes"
"golang.org/x/exp/slices"
"os/exec"
"path"
"strings"
"testing"
"golang.org/x/exp/slices"
)
/*

View File

@@ -48,7 +48,7 @@ const (
var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -41,7 +41,7 @@ const (
var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -57,7 +57,7 @@ const (
var (
Build string = "2020-04-23"
GoVersion string = "1.14.1"
Version string = "3.4.0"
Version string = "3.5.0"
Commit string
defaultConnectionTimeout = 3 * time.Second

View File

@@ -10,8 +10,8 @@ import (
"github.com/alecthomas/kingpin"
_ "github.com/lib/pq"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"github.com/percona/percona-toolkit/src/go/lib/pginfo"
"github.com/percona/percona-toolkit/src/go/pt-pg-summary/templates"
@@ -21,7 +21,7 @@ var (
Build string = "2020-04-23" //nolint
Commit string //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
)
type connOpts struct {

View File

@@ -15,8 +15,8 @@ import (
"github.com/alecthomas/kingpin"
"github.com/go-ini/ini"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"golang.org/x/crypto/ssh/terminal"
)
@@ -86,7 +86,7 @@ var (
Build string = "2020-04-23" //nolint
GoVersion string = "1.14.1" //nolint
Version string = "3.4.0" //nolint
Version string = "3.5.0" //nolint
Commit string //nolint
)

View File

@@ -482,6 +482,13 @@ VERSION=$1
REL_NOTES=$2
OS_ARCH=${3:-linux-amd64}
ONLY_UPDATE_VERSION=${ONLY_UPDATE_VERSION:-0}
if [ $ONLY_UPDATE_VERSION -eq 1 ]; then
update_version
exit
fi
if [ $OS_ARCH != "linux-amd64" ] && [ $OS_ARCH != "linux-386" ] && [ $OS_ARCH != "darwin-amd64" ]; then
die "Valid OS-ARCH combinations are: linux-amd64, linux-386, darwin-amd64"
fi