Commenting out whois+sed, will be re-added later

This commit is contained in:
Yoann La Cancellera
2023-11-07 17:39:58 +01:00
parent 230bece1e1
commit 602ca34006
3 changed files with 8 additions and 26 deletions

View File

@@ -36,9 +36,9 @@ var CLI struct {
ExcludeRegexes []string `help:"Remove regexes from analysis. List regexes using 'pt-galera-log-explainer regex-list'"` ExcludeRegexes []string `help:"Remove regexes from analysis. List regexes using 'pt-galera-log-explainer regex-list'"`
MergeByDirectory bool `help:"Instead of relying on identification, merge contexts and columns by base directory. Very useful when dealing with many small logs organized per directories."` MergeByDirectory bool `help:"Instead of relying on identification, merge contexts and columns by base directory. Very useful when dealing with many small logs organized per directories."`
List list `cmd:""` List list `cmd:""`
Whois whois `cmd:""` //Whois whois `cmd:""`
Sed sed `cmd:""` // Sed sed `cmd:""`
Ctx ctx `cmd:""` Ctx ctx `cmd:""`
RegexList regexList `cmd:""` RegexList regexList `cmd:""`
Conflicts conflicts `cmd:""` Conflicts conflicts `cmd:""`

View File

@@ -1,16 +1,6 @@
package main package main
import ( /*
"fmt"
"os"
"os/exec"
"strings"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
"github.com/pkg/errors"
)
type sed struct { type sed struct {
Paths []string `arg:"" name:"paths" help:"paths of the log to use"` Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
ByIP bool `help:"Replace by IP instead of name"` ByIP bool `help:"Replace by IP instead of name"`
@@ -109,3 +99,4 @@ func sedSliceWith(elems []string, replace string) []string {
} }
return args return args
} }
*/

View File

@@ -1,14 +1,6 @@
package main package main
import ( /*
"encoding/json"
"fmt"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
"github.com/pkg/errors"
)
type whois struct { type whois struct {
Search string `arg:"" name:"search" help:"the identifier (node name, ip, uuid, hash) to search"` Search string `arg:"" name:"search" help:"the identifier (node name, ip, uuid, hash) to search"`
Paths []string `arg:"" name:"paths" help:"paths of the log to use"` Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
@@ -40,7 +32,6 @@ func (w *whois) Run() error {
} }
func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo { func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
/*
ni := types.NodeInfo{Input: search} ni := types.NodeInfo{Input: search}
if regex.IsNodeUUID(search) { if regex.IsNodeUUID(search) {
search = utils.UUIDToShortUUID(search) search = utils.UUIDToShortUUID(search)
@@ -98,6 +89,6 @@ func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
ni.NodeUUIDs = hashes ni.NodeUUIDs = hashes
ni.IPs = ips ni.IPs = ips
return ni return ni
*/
return types.NodeInfo{} return types.NodeInfo{}
} }
*/