Skip to content

Commit

Permalink
Fix issue in which More is never set
Browse files Browse the repository at this point in the history
Due to checking the wrong variable More is never set to true. This
causes an issue specifically only when k8s does selector based lists
that are also paginated.
  • Loading branch information
ibuildthecloud committed Nov 18, 2019
1 parent 4e04255 commit e4469f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (l *LimitedServer) list(ctx context.Context, r *etcdserverpb.RangeRequest)
Kvs: kvs,
}

if limit > 0 && resp.Count > limit {
if limit > 0 && resp.Count > r.Limit {
resp.More = true
resp.Kvs = kvs[0 : limit-1]
}
Expand Down

0 comments on commit e4469f1

Please sign in to comment.