Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Mar 31, 2022
1 parent 118a355 commit 45bc8bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/meta/tkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,7 @@ func (m *kvMeta) dumpDir(inode Ino, tree *DumpedEntry, bw *bufio.Writer, depth i
return err
}
entry.Name = name[10:]
entry.encodeSelf()
if typ == TypeDirectory {
err = m.dumpDir(inode, entry, bw, depth+2, showProgress)
} else {
Expand All @@ -2099,7 +2100,6 @@ func (m *kvMeta) dumpDir(inode Ino, tree *DumpedEntry, bw *bufio.Writer, depth i
if err != nil {
return err
}
entry.encodeSelf()
if idx != len(vals)-1 {
bwWrite(",")
}
Expand Down Expand Up @@ -2246,6 +2246,7 @@ func (m *kvMeta) DumpMeta(w io.Writer, root Ino) (err error) {
dm.Setting.SecretKey = "removed"
logger.Warnf("Secret key is removed for the sake of safety")
}
dm.Setting.encodeSelf()
bw, err := dm.writeJsonWithOutTree(w)
if err != nil {
return err
Expand Down

0 comments on commit 45bc8bc

Please sign in to comment.