Skip to content

Commit

Permalink
Merge pull request #16070 from kkkkun/rm-stack-log
Browse files Browse the repository at this point in the history
remove stack log when restore snapshot
  • Loading branch information
serathius committed Oct 17, 2023
2 parents 976378c + 620a623 commit 4cf9ef8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etcdutl/snapshot/v3_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/client/pkg/v3/fileutil"
"go.etcd.io/etcd/client/pkg/v3/types"
"go.etcd.io/etcd/client/v3"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/client/v3/snapshot"
"go.etcd.io/etcd/raft/v3"
"go.etcd.io/etcd/raft/v3/raftpb"
Expand Down Expand Up @@ -263,7 +263,6 @@ func (s *v3Manager) Restore(cfg RestoreConfig) error {
zap.String("wal-dir", s.walDir),
zap.String("data-dir", dataDir),
zap.String("snap-dir", s.snapDir),
zap.Stack("stack"),
)

if err = s.saveDB(); err != nil {
Expand Down

0 comments on commit 4cf9ef8

Please sign in to comment.