Skip to content

Commit

Permalink
fix: encode payload with rdb.EncodeVersion=6
Browse files Browse the repository at this point in the history
  • Loading branch information
spinlock committed Oct 13, 2016
1 parent c3241e3 commit 2db03f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rdb/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func createValueDump(t byte, val []byte) []byte {
w := io.MultiWriter(&b, c)
w.Write([]byte{t})
w.Write(val)
binary.Write(w, binary.LittleEndian, uint16(Version))
binary.Write(w, binary.LittleEndian, uint16(rdb.EncodeVersion))
binary.Write(w, binary.LittleEndian, c.Sum64())
return b.Bytes()
}

0 comments on commit 2db03f0

Please sign in to comment.