Skip to content

Commit e4469f1

Browse files
Fix issue in which More is never set
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.
1 parent 4e04255 commit e4469f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (l *LimitedServer) list(ctx context.Context, r *etcdserverpb.RangeRequest)
4747
Kvs: kvs,
4848
}
4949

50-
if limit > 0 && resp.Count > limit {
50+
if limit > 0 && resp.Count > r.Limit {
5151
resp.More = true
5252
resp.Kvs = kvs[0 : limit-1]
5353
}

0 commit comments

Comments
 (0)