@@ -711,7 +711,9 @@ func (b *backend) ListModifiedSince(ctx context.Context, key resource.Namespaced
|
||||
|
||||
if mr.Key.Name <= lastSeen {
|
||||
// resource names should be sorted alphabetically. So if not, the query is not correct.
|
||||
yield(nil, fmt.Errorf("listModifiedSince: resources are not sorted by name ASC, lastSeen: %q, current: %q", lastSeen, mr.Key.Name))
|
||||
if !yield(nil, fmt.Errorf("listModifiedSince: resources are not sorted by name ASC, lastSeen: %q, current: %q", lastSeen, mr.Key.Name)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
lastSeen = mr.Key.Name
|
||||
|
||||
Reference in New Issue
Block a user