mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: Use known dir-path in log message
Signed-off-by: Ted Yu <yuzhihong@gmail.com>
This commit is contained in:
parent
69b70e8c43
commit
9d0ecc3ba3
@ -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