Skip to content

Commit

Permalink
Merge pull request #19164 from fuweid/v35_check_v2store_followup
Browse files Browse the repository at this point in the history
[3.5] etcdutl/etcdutl: use datadir package to build wal/snapdir
  • Loading branch information
ahrtr authored Jan 10, 2025
2 parents 2c171d0 + e5b7e08 commit 6349cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etcdutl/etcdutl/check_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ package etcdutl
import (
"errors"
"fmt"
"path/filepath"

"github.com/spf13/cobra"

"go.etcd.io/etcd/pkg/v3/cobrautl"
"go.etcd.io/etcd/server/v3/datadir"
"go.etcd.io/etcd/server/v3/etcdserver"
"go.etcd.io/etcd/server/v3/etcdserver/api/membership"
"go.etcd.io/etcd/server/v3/etcdserver/api/snap"
Expand Down Expand Up @@ -67,8 +67,8 @@ func checkV2StoreDataDir(dataDir string) error {
var (
lg = GetLogger()

walDir = filepath.Join(dataDir, "member", "wal")
snapDir = filepath.Join(dataDir, "member", "snap")
walDir = datadir.ToWalDir(dataDir)
snapDir = datadir.ToSnapDir(dataDir)
)

walSnaps, err := wal.ValidSnapshotEntries(lg, walDir)
Expand Down

0 comments on commit 6349cb8

Please sign in to comment.