Skip to content

Commit

Permalink
mvcc: add Keep to fakeIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
fanminshi committed Jul 28, 2017
1 parent 034a201 commit e0592ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mvcc/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,10 @@ func (i *fakeIndex) Compact(rev int64) map[revision]struct{} {
i.Recorder.Record(testutil.Action{Name: "compact", Params: []interface{}{rev}})
return <-i.indexCompactRespc
}
func (i *fakeIndex) Keep(rev int64) map[revision]struct{} {
i.Recorder.Record(testutil.Action{Name: "keep", Params: []interface{}{rev}})
return <-i.indexCompactRespc
}
func (i *fakeIndex) Equal(b index) bool { return false }

func (i *fakeIndex) Insert(ki *keyIndex) {
Expand Down

0 comments on commit e0592ea

Please sign in to comment.