Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ _testmain.go

# Project-specific files
diff

.idea/
go.sum
5 changes: 2 additions & 3 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ func (d *decode) decode() error {
//var lruClock int64
firstDB := true
for {
d.lruIdle = 0
d.lfuFreq = 0

objType, err := d.r.ReadByte()
if err != nil {
return errors.Wrap(err, errors.New("readfailed"))
Expand Down Expand Up @@ -344,6 +341,8 @@ func (d *decode) decode() error {
return errors.Trace(err)
}
expiry = 0
d.lruIdle = 0
d.lfuFreq = 0
}
}

Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ go 1.14

require (
github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76
github.com/juju/errors v0.0.0-20200330140219-3fe23663418f
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pkg/errors v0.9.1 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f
github.com/juju/errors v1.0.0
github.com/kr/pretty v0.3.1 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
)