Skip to content

Commit

Permalink
Fix(lsbackup): Fix profiler in lsBackup (#7729) (#8432)
Browse files Browse the repository at this point in the history
cherry pick from #7729

## Problem
wrong config set for profiler (set to Restore instead of Backup)

## Solution
set profiler to Backup.conf


Co-authored-by: Ahsan Barkati <ahsanbarkati@gmail.com>
  • Loading branch information
dshekhar95 and ahsanbarkati authored Dec 1, 2022
1 parent a4729b3 commit 5ac56a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/backup/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func initBackupLs() {
Short: "List info on backups in a given location",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
defer x.StartProfile(Restore.Conf).Stop()
defer x.StartProfile(LsBackup.Conf).Stop()
if err := runLsbackupCmd(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
Expand Down

0 comments on commit 5ac56a1

Please sign in to comment.