mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver/api/snap: update format string in "ReleaseSnapDBs"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
This commit is contained in:
parent
3d3ed29d64
commit
f1179fd70d
@ -282,7 +282,7 @@ func (s *Snapshotter) ReleaseSnapDBs(snap raftpb.Snapshot) error {
|
||||
hexIndex := strings.TrimSuffix(filepath.Base(filename), ".snap.db")
|
||||
index, err := strconv.ParseUint(hexIndex, 16, 64)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse index from .snap.db filename '%s': %w", filename, err)
|
||||
return fmt.Errorf("failed to parse index from .snap.db filename %q: %v", filename, err)
|
||||
}
|
||||
if index < snap.Metadata.Index {
|
||||
s.lg.Info("found orphaned .snap.db file; deleting", zap.String("path", filename))
|
||||
|
Loading…
x
Reference in New Issue
Block a user