mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #11810 from tedyu/dir-after-rename
Use known dir-path in log message
This commit is contained in:
commit
262c939805
@ -169,11 +169,12 @@ func Create(lg *zap.Logger, dirpath string, metadata []byte) (*WAL, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
logDirPath := w.dir
|
||||
if w, err = w.renameWAL(tmpdirpath); err != nil {
|
||||
lg.Warn(
|
||||
"failed to rename the temporary WAL directory",
|
||||
zap.String("tmp-dir-path", tmpdirpath),
|
||||
zap.String("dir-path", w.dir),
|
||||
zap.String("dir-path", logDirPath),
|
||||
zap.Error(err),
|
||||
)
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user