Remove trailing spaces (#665)

* Remove trailing spaces

* PR-665 -  Remove trailing spaces

- Updated not stable test t/pt-online-schema-change/preserve_triggers.t
- Updated utilities in bin directory

* PR-665 -  Remove trailing spaces

- Fixed typos

* PR-665 -  Remove trailing spaces

- Fixed typos

---------

Co-authored-by: Sveta Smirnova <sveta.smirnova@percona.com>
This commit is contained in:
Viktor Szépe
2023-09-06 00:15:12 +02:00
committed by GitHub
parent 8bf97c9ca7
commit 2bd40d8c39
570 changed files with 5557 additions and 5557 deletions

View File

@@ -121,7 +121,7 @@ env-up: env ## Start MongoDB docker containers cluster
--detach \
--force-recreate \
--always-recreate-deps \
--renew-anon-volumes
--renew-anon-volumes
env-down: env ## Clean-up MongoDB docker containers cluster
docker-compose down -v
@@ -139,7 +139,7 @@ linux-386: ## Build Mongo tools for linux-386
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)
@$(foreach pkg,$(pkgs),GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg) ./$(pkg);)
darwin-amd64: ## Build Mongo tools for darwin-amd64 (MacOS)
darwin-amd64: ## Build Mongo tools for darwin-amd64 (MacOS)
@echo "Building darwin/amd64 binaries in ${BIN_DIR} as version ${VERSION}"
@cd ${TOP_DIR} && go get ./...
@$(foreach pkg,$(pkgs),rm -f ${BIN_DIR}/$(pkg) 2> /dev/null;)

View File

@@ -1,5 +1,5 @@
#Percona Toolkit
[![Build Status](https://travis-ci.org/percona/toolkit-go.svg?branch=master)](https://travis-ci.org/percona/toolkit-go)
[![Build Status](https://travis-ci.org/percona/toolkit-go.svg?branch=master)](https://travis-ci.org/percona/toolkit-go)
Percona Toolkit is a collection of advanced command-line tools used by Percona support staff to perform a variety of MySQL and system tasks that are too difficult or complex to perform manually.

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
mongodb1=`getent hosts ${MONGOS} | awk '{ print $1 }'`

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
mongodb1=`getent hosts ${MONGO1} | awk '{ print $1 }'`
mongodb2=`getent hosts ${MONGO2} | awk '{ print $1 }'`

View File

@@ -4,7 +4,7 @@
:program:`pt-k8s-debug-collector`
==================================
Collects debug data (logs, resource statuses etc.) from a k8s/OpenShift cluster. Data is packed into the ``cluster-dump.tar.gz`` archive in the current working directory.
Collects debug data (logs, resource statuses etc.) from a k8s/OpenShift cluster. Data is packed into the ``cluster-dump.tar.gz`` archive in the current working directory.
Data that will be collected
===========================
@@ -125,31 +125,31 @@ Usage
Supported Flags
================
``--resource``
``--resource``
Targeted custom resource name. Supported values:
Targeted custom resource name. Supported values:
* ``pxc`` - PXC
* ``pxc`` - PXC
* ``psmdb`` - MongoDB
* ``pg`` - PostgreSQL
* ``pg`` - PostgreSQL
* ``ps`` - MySQL
* ``none`` - Collect only general Kubernetes data, do not collect anything specific to the particular operator).
* ``none`` - Collect only general Kubernetes data, do not collect anything specific to the particular operator).
Default: ``none``
``--namespace``
``--namespace``
Targeted namespace. By default data will be collected from all namespaces
``--cluster``
``--cluster``
Targeted cluster. By default data from all available clusters to be collected
``--kubeconfig``
``--kubeconfig``
Path to kubeconfig. Default configuration be used if none specified

View File

@@ -4,7 +4,7 @@ package templates
// When $i == 0 (first element) {{ if $i }} returns false (0)
var Duplicated = `
Duplicated indexes
Duplicated indexes
{{ range . }}
{{ .Namespace }}, index '{{ .Name }}', with fields { {{- range $i, $val := .Key }}{{if $i}}, {{end}}{{ $val.Key }}:{{ $val.Value }}{{ end -}} } is the prefix of '{{ .ContainerName }}' with fields { {{- range $i, $val := .ContainerKey }}{{if $i}}, {{end}}{{ $val.Key }}:{{ $val.Value }}{{ end -}} }{{ end}}
`

View File

@@ -400,7 +400,7 @@ func getTotalsTemplate() string {
# Docs Scanned {{printf "% 4.0f" .Scanned.Pct}} {{Format .Scanned.Total 7.2}} {{Format .Scanned.Min 7.2}} {{Format .Scanned.Max 7.2}} {{Format .Scanned.Avg 7.2}} {{Format .Scanned.Pct95 7.2}} {{Format .Scanned.StdDev 7.2}} {{Format .Scanned.Median 7.2}}
# Docs Returned {{printf "% 4.0f" .Returned.Pct}} {{Format .Returned.Total 7.2}} {{Format .Returned.Min 7.2}} {{Format .Returned.Max 7.2}} {{Format .Returned.Avg 7.2}} {{Format .Returned.Pct95 7.2}} {{Format .Returned.StdDev 7.2}} {{Format .Returned.Median 7.2}}
# Bytes sent {{printf "% 4.0f" .ResponseLength.Pct}} {{Format .ResponseLength.Total 7.2}} {{Format .ResponseLength.Min 7.2}} {{Format .ResponseLength.Max 7.2}} {{Format .ResponseLength.Avg 7.2}} {{Format .ResponseLength.Pct95 7.2}} {{Format .ResponseLength.StdDev 7.2}} {{Format .ResponseLength.Median 7.2}}
#
#
`
return t
}

View File

@@ -6,12 +6,12 @@ Usage
-----
pt-mongodb-summary [options] [host:[port]]
Default host:port is `localhost:27017`.
Default host:port is `localhost:27017`.
For better results, host must be a **mongos** server.
Binaries
--------
Please check the `releases <https://github.com/percona/toolkit-go/releases>`_ tab to download the binaries.
Please check the `releases <https://github.com/percona/toolkit-go/releases>`_ tab to download the binaries.
Parameters
^^^^^^^^^
@@ -24,8 +24,8 @@ Parameters
|-u|--user|empty|user name to use when connecting if DB auth is enabled|
``-p`` is an optional parameter. If it is used it shouldn't have a blank between the parameter and its value: `-p<password>`
It can be also used as `-p` without specifying a password; in that case, the program will ask the password to avoid using a password in the command line.
``-p`` is an optional parameter. If it is used it shouldn't have a blank between the parameter and its value: `-p<password>`
It can be also used as `-p` without specifying a password; in that case, the program will ask the password to avoid using a password in the command line.
Output example
@@ -33,12 +33,12 @@ Output example
.. code-block:: html
# Instances ####################################################################################
ID Host Type ReplSet
0 localhost:17001 PRIMARY r1
1 localhost:17002 SECONDARY r1
2 localhost:17003 SECONDARY r1
0 localhost:18001 PRIMARY r2
1 localhost:18002 SECONDARY r2
ID Host Type ReplSet
0 localhost:17001 PRIMARY r1
1 localhost:17002 SECONDARY r1
2 localhost:17003 SECONDARY r1
0 localhost:18001 PRIMARY r2
1 localhost:18002 SECONDARY r2
2 localhost:18003 SECONDARY r2
# This host
@@ -54,9 +54,9 @@ Output example
Started | 2016-10-30 00:18:49 -0300 ART
Datadir | /data/db
Process Type | mongos
# Running Ops ##################################################################################
Type Min Max Avg
Insert 0 0 0/5s
Query 0 0 0/5s
@@ -64,7 +64,7 @@ Output example
Delete 0 0 0/5s
GetMore 0 0 0/5s
Command 0 22 16/5s
# Security #####################################################################################
Users 0
Roles 0

View File

@@ -7,5 +7,5 @@ const BalancerStats = `
Failed: {{.Failed}}
Splits: {{.Splits}}
Drops: {{.Drops}}
{{- end -}}
{{- end -}}
`

View File

@@ -7,10 +7,10 @@ const Clusterwide = `
Collections: {{.TotalCollectionsCount}}
Sharded Collections: {{.ShardedColsCount}}
Unsharded Collections: {{.UnshardedColsCount}}
Sharded Data Size: {{.ShardedDataSizeScaled}} {{.ShardedDataSizeScale}}
Sharded Data Size: {{.ShardedDataSizeScaled}} {{.ShardedDataSizeScale}}
Unsharded Data Size: {{.UnshardedDataSizeScaled}} {{.UnshardedDataSizeScale}}
{{- if .Chunks }}
### Chunks:
### Chunks:
{{- range .Chunks }}
{{- if .ID }}
{{ printf "%5d" .Count }} : {{ printf "%-30s" .ID}}

View File

@@ -4,5 +4,5 @@ const CmdlineArgs = `
{{ if . }}
# Command line arguments
{{ range .CmdlineArgs -}} {{- . }} {{ end }}
{{- end }}
{{- end }}
`

View File

@@ -21,6 +21,6 @@ const HostInfo = `# This host
Process Type | {{.NodeType}}
{{- if .ReplicasetName }}
ReplSet | {{.ReplicasetName}}
Repl Status |
Repl Status |
{{- end -}}
`

View File

@@ -4,10 +4,10 @@ const Replicas = `
# Instances ##############################################################################################
PID Host Type ReplSet Engine
{{- if . -}}
{{- range . }}
{{- range . }}
{{printf "% 6d" .ID}} {{printf "%-30s" .Name}} {{printf "%-25s" .StateStr}} {{ if .Set }}{{printf "%-10s" .Set }}{{else}}- {{end}} {{printf "%20s" .StorageEngine.Name -}}
{{end}}
{{else}}
{{else}}
no replica sets found
{{end}}
`

View File

@@ -9,7 +9,7 @@ SSL : {{.SSL}}
Port : {{.Port}}
Bind IP: {{.BindIP}}
{{- if .WarningMsgs -}}
{{- range .WarningMsgs }}
{{- range .WarningMsgs }}
{{ . }}
{{end}}
{{end }}

View File

@@ -7,7 +7,7 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
-
-
binary: pt-pg-summary
env:
- CGO_ENABLED=0

View File

@@ -19,8 +19,8 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type AllDatabases \
--package models \
--out ./ << ENDSQL
SELECT datname
FROM pg_database
SELECT datname
FROM pg_database
WHERE datistemplate = false
ENDSQL
@@ -32,9 +32,9 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type PortAndDatadir \
--package models \
--out ./ << ENDSQL
SELECT name,
setting
FROM pg_settings
SELECT name,
setting
FROM pg_settings
WHERE name IN ('port','data_directory')
ENDSQL
@@ -49,7 +49,7 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--out ./ << ENDSQL
SELECT spcname AS Name,
pg_catalog.pg_get_userbyid(spcowner) AS Owner,
pg_catalog.pg_tablespace_location(oid) AS Location
pg_catalog.pg_tablespace_location(oid) AS Location
FROM pg_catalog.pg_tablespace
ORDER BY 1
ENDSQL
@@ -67,13 +67,13 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-allow-nulls \
--package models \
--out ./ << ENDSQL
SELECT usename, now() AS "Time",
SELECT usename, now() AS "Time",
client_addr,
client_hostname,
version() AS version,
pg_postmaster_start_time() AS Started,
pg_is_in_recovery() AS "Is_Slave"
FROM pg_stat_activity
client_hostname,
version() AS version,
pg_postmaster_start_time() AS Started,
pg_is_in_recovery() AS "Is_Slave"
FROM pg_stat_activity
WHERE pid = pg_backend_pid()
ENDSQL
@@ -86,11 +86,11 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT12}/?sslmode=disable \
--query-type Databases \
--package models \
--out ./ << ENDSQL
SELECT datname, pg_size_pretty(pg_database_size(datname))
SELECT datname, pg_size_pretty(pg_database_size(datname))
FROM pg_stat_database
WHERE datid <> 0
ENDSQL
xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-mode \
--query-trim \
@@ -98,11 +98,11 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type Connections \
--package models \
--out ./ << ENDSQL
SELECT state, count(*)
FROM pg_stat_activity
SELECT state, count(*)
FROM pg_stat_activity
GROUP BY 1
ENDSQL
xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT12}/?sslmode=disable \
--query-mode \
--query-interpolate \
@@ -111,9 +111,9 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT12}/?sslmode=disable \
--package models \
--out ./ << ENDSQL
SELECT COALESCE(datname, '') datname, numbackends, xact_commit, xact_rollback,
blks_read, blks_hit, tup_returned, tup_fetched, tup_inserted,
tup_updated, tup_deleted, conflicts, temp_files,
temp_bytes, deadlocks
blks_read, blks_hit, tup_returned, tup_fetched, tup_inserted,
tup_updated, tup_deleted, conflicts, temp_files,
temp_bytes, deadlocks
FROM pg_stat_database
ORDER BY datname
ENDSQL
@@ -129,14 +129,14 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT12}/?sslmode=disable \
--query-interpolate \
--query-allow-nulls \
--package models \
--out ./ << ENDSQL
--out ./ << ENDSQL
SELECT c.relname, c.relkind, b.datname datname, count(*) FROM pg_locks a
JOIN pg_stat_database b
ON a.database=b.datid
JOIN pg_class c
ON a.relation=c.oid
WHERE a.relation IS NOT NULL
AND a.database IS NOT NULL
JOIN pg_stat_database b
ON a.database=b.datid
JOIN pg_class c
ON a.relation=c.oid
WHERE a.relation IS NOT NULL
AND a.database IS NOT NULL
GROUP BY 1,2,3
ENDSQL
@@ -171,12 +171,12 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type-comment "$COMMENT" \
--package models \
--out ./ << ENDSQL
SELECT 'index hit rate' AS name,
CASE WHEN sum(idx_blks_hit) IS NULL
THEN 0
ELSE (sum(idx_blks_hit)) / sum(idx_blks_hit + idx_blks_read)
END AS ratio
FROM pg_statio_user_indexes
SELECT 'index hit rate' AS name,
CASE WHEN sum(idx_blks_hit) IS NULL
THEN 0
ELSE (sum(idx_blks_hit)) / sum(idx_blks_hit + idx_blks_read)
END AS ratio
FROM pg_statio_user_indexes
WHERE (idx_blks_hit + idx_blks_read) > 0
ENDSQL
@@ -186,10 +186,10 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type GlobalWaitEvents \
--package models \
--out ./ << ENDSQL
SELECT wait_event_type, wait_event, count(*)
FROM pg_stat_activity
WHERE wait_event_type IS NOT NULL
OR wait_event IS NOT NULL
SELECT wait_event_type, wait_event, count(*)
FROM pg_stat_activity
WHERE wait_event_type IS NOT NULL
OR wait_event IS NOT NULL
GROUP BY 1,2
ENDSQL
@@ -201,14 +201,14 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type DatabaseWaitEvents \
--package models \
--out ./ << ENDSQL
SELECT c.relname, c.relkind, d.wait_event_type, d.wait_event, b.datname, count(*)
FROM pg_locks a
JOIN pg_stat_database b ON a.database=b.datid
JOIN pg_class c ON a.relation=c.oid
JOIN pg_stat_activity d ON a.pid = d.pid
WHERE a.relation IS NOT NULL
AND a.database IS NOT NULL
AND (d.wait_event_type IS NOT NULL OR d.wait_event IS NOT NULL)
SELECT c.relname, c.relkind, d.wait_event_type, d.wait_event, b.datname, count(*)
FROM pg_locks a
JOIN pg_stat_database b ON a.database=b.datid
JOIN pg_class c ON a.relation=c.oid
JOIN pg_stat_activity d ON a.pid = d.pid
WHERE a.relation IS NOT NULL
AND a.database IS NOT NULL
AND (d.wait_event_type IS NOT NULL OR d.wait_event IS NOT NULL)
GROUP BY 1,2,3,4,5
ENDSQL
@@ -222,12 +222,12 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-interpolate \
--package models \
--out ./ << ENDSQL
SELECT usename,
CASE WHEN client_hostname IS NULL THEN client_addr::text ELSE client_hostname END AS client,
state, count(*)
FROM pg_stat_activity
WHERE state IS NOT NULL
GROUP BY 1,2,3
SELECT usename,
CASE WHEN client_hostname IS NULL THEN client_addr::text ELSE client_hostname END AS client,
state, count(*)
FROM pg_stat_activity
WHERE state IS NOT NULL
GROUP BY 1,2,3
ORDER BY 4 desc,3
ENDSQL
@@ -240,12 +240,12 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-allow-nulls \
--package models \
--out ./ << ENDSQL
SELECT application_name, client_addr, state, sent_offset - (replay_offset - (sent_xlog - replay_xlog) * 255 * 16 ^ 6 ) AS byte_lag
FROM ( SELECT application_name, client_addr, client_hostname, state,
('x' || lpad(split_part(sent_location::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS sent_xlog,
('x' || lpad(split_part(replay_location::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS replay_xlog,
('x' || lpad(split_part(sent_location::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS sent_offset,
('x' || lpad(split_part(replay_location::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS replay_offset
SELECT application_name, client_addr, state, sent_offset - (replay_offset - (sent_xlog - replay_xlog) * 255 * 16 ^ 6 ) AS byte_lag
FROM ( SELECT application_name, client_addr, client_hostname, state,
('x' || lpad(split_part(sent_location::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS sent_xlog,
('x' || lpad(split_part(replay_location::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS replay_xlog,
('x' || lpad(split_part(sent_location::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS sent_offset,
('x' || lpad(split_part(replay_location::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS replay_offset
FROM pg_stat_replication ) AS s
ENDSQL
@@ -258,12 +258,12 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT10}/?sslmode=disable \
--query-type SlaveHosts10 \
--package models \
--out ./ << ENDSQL
SELECT application_name, client_addr, state, sent_offset - (replay_offset - (sent_lsn - replay_lsn) * 255 * 16 ^ 6 ) AS byte_lag
FROM ( SELECT application_name, client_addr, client_hostname, state,
('x' || lpad(split_part(sent_lsn::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS sent_lsn,
('x' || lpad(split_part(replay_lsn::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS replay_lsn,
('x' || lpad(split_part(sent_lsn::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS sent_offset,
('x' || lpad(split_part(replay_lsn::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS replay_offset
SELECT application_name, client_addr, state, sent_offset - (replay_offset - (sent_lsn - replay_lsn) * 255 * 16 ^ 6 ) AS byte_lag
FROM ( SELECT application_name, client_addr, client_hostname, state,
('x' || lpad(split_part(sent_lsn::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS sent_lsn,
('x' || lpad(split_part(replay_lsn::TEXT, '/', 1), 8, '0'))::bit(32)::bigint AS replay_lsn,
('x' || lpad(split_part(sent_lsn::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS sent_offset,
('x' || lpad(split_part(replay_lsn::TEXT, '/', 2), 8, '0'))::bit(32)::bigint AS replay_offset
FROM pg_stat_replication ) AS s
ENDSQL
@@ -289,10 +289,10 @@ xo pgsql://${USERNAME}:${PASSWORD}@127.0.0.1:${PORT9}/?sslmode=disable \
--query-type-comment "$COMMENT" \
--package models \
--out ./ << ENDSQL
SELECT name, setting
SELECT name, setting
FROM pg_settings
ENDSQL
if [ $DO_CLEANUP == 1 ]; then
if [ $DO_CLEANUP == 1 ]; then
docker-compose down --volumes
fi

View File

@@ -19,7 +19,7 @@ $(error GOPATH is not set)
endif
ifeq (,$(wildcard ${GOPATH}/src))
$(error Invalid GOPATH. There is no src dir in the GOPATH)
$(error Invalid GOPATH. There is no src dir in the GOPATH)
endif
ifeq ($(findstring ${GOPATH},${CUR_DIR}), )
@@ -59,7 +59,7 @@ linux-amd64: prepare
linux-amd64-tar: linux-amd64
@tar cvzf ${BIN_DIR}/pt-secure-collect_linux_amd64.tar.gz -C ${BIN_DIR} pt-secure-collect
darwin-amd64:
darwin-amd64:
@echo "Building darwin/amd64 binaries in ${BIN_DIR}"
@mkdir -p ${BIN_DIR}
@GOOS=darwin GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/pt-secure-collect *.go

View File

@@ -7,7 +7,7 @@ Collect, sanitize, pack and encrypt data. By default, this program will collect
Internal variables placeholders will be replaced with the corresponding flag values. For example, `$mysql-host` will be replaced with the values specified in the `--mysql-host` flag.
Usage:
Usage:
```
pt-secure-collect [<flags>] <command> [<args> ...]
```
@@ -33,7 +33,7 @@ pt-secure-collect collect <flags>
|Flag|Description|
|-----|-----|
|--bin-dir|Directory having the Percona Toolkit binaries (if they are not in PATH).|
|--temp-dir|Temporary directory used for the data collection. Default: ${HOME}/data_collection\_{timestamp}|
|--temp-dir|Temporary directory used for the data collection. Default: ${HOME}/data_collection\_{timestamp}|
|--include-dir|Include this dir into the sanitized tar file|
|--config-file|Path to the config file. Default: `~/.my.cnf`|
|--mysql-host|MySQL host. Default: `127.0.0.1`|
@@ -51,8 +51,8 @@ pt-secure-collect collect <flags>
|--no-remove-temp-files|Do not remove temporary files.|
#### **Decrypt command**
Decrypt an encrypted file. The password will be requested from the terminal.
Usage:
Decrypt an encrypted file. The password will be requested from the terminal.
Usage:
```
pt-secure-collect decrypt [flags] <input file>
```
@@ -62,23 +62,23 @@ pt-secure-collect decrypt [flags] <input file>
#### **Encrypt command**
Encrypt a file. The password will be requested from the terminal.
Usage:
Encrypt a file. The password will be requested from the terminal.
Usage:
```
pt-secure-collect encrypt [flags] <input file>
```
```
|Flag|Description|
|-----|------|
|--outfile|Write the output to this file.<br>If omitted, the output file name will be the same as the input file, without the `.aes` extension|
#### **Sanitize command**
Replace queries in a file by their fingerprints and obfuscate hostnames.
Replace queries in a file by their fingerprints and obfuscate hostnames.
Usage:
```
pt-secure-collect sanitize [flags]
```
|Flag|Description|
|-----|-----|
|--input-file| Input file. If not specified, the input will be Stdin.|

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:24:56 INNODB MONITOR OUTPUT
=====================================

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:25:26 INNODB MONITOR OUTPUT
=====================================

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:29:56 INNODB MONITOR OUTPUT
=====================================

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:30:26 INNODB MONITOR OUTPUT
=====================================

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:34:56 INNODB MONITOR OUTPUT
=====================================

View File

@@ -1,7 +1,7 @@
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
Name:
Status:
=====================================
180305 13:35:26 INNODB MONITOR OUTPUT
=====================================

View File

@@ -7,7 +7,7 @@ cd $BASEDIR
source ${BASEDIR}/src/go/setenv.sh
for dir in $(ls -d ./src/go/pt-* ) ./src/go/mongolib
do
do
echo "Running tests at $BASEDIR/$dir"
cd $BASEDIR/$dir
go get ./...

View File

@@ -1,7 +1,7 @@
#!/bin/sh
set -e
set -x
set -x
## Declare an array of images.
declare -a images=(