Unified Storage: Removes check for name ordering and adds test (#110183)
removes check for name ordering. Adds test to assert expected name and rv ordering.
This commit is contained in:
@@ -709,13 +709,6 @@ func (b *backend) ListModifiedSince(ctx context.Context, key resource.Namespaced
|
||||
continue
|
||||
}
|
||||
|
||||
if mr.Key.Name <= lastSeen {
|
||||
// resource names should be sorted alphabetically. So if not, the query is not correct.
|
||||
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
|
||||
|
||||
if !yield(mr, nil) {
|
||||
|
||||
Reference in New Issue
Block a user