Cleanup of old search functionality (#110861)
* Remove support for initMinSize. Remove support for searchAfterWrite option, now it defaults to true. * Remove reference to deprecated feature toggle. * Remove feature toggle completely. * Remove code related to indexing on watch events. * Fix compilation error. * Remove unused field.
This commit is contained in:
@@ -240,11 +240,11 @@ func (s *server) BulkProcess(stream resourcepb.BulkStore_BulkProcessServer) erro
|
||||
if rsp.Error == nil && s.search != nil {
|
||||
// Rebuild any changed indexes
|
||||
for _, summary := range rsp.Summary {
|
||||
_, _, err := s.search.build(ctx, NamespacedResource{
|
||||
_, err := s.search.build(ctx, NamespacedResource{
|
||||
Namespace: summary.Namespace,
|
||||
Group: summary.Group,
|
||||
Resource: summary.Resource,
|
||||
}, summary.Count, summary.ResourceVersion, "rebuildAfterBatchLoad", true)
|
||||
}, summary.Count, "rebuildAfterBatchLoad", true)
|
||||
if err != nil {
|
||||
s.log.Warn("error building search index after batch load", "err", err)
|
||||
rsp.Error = &resourcepb.ErrorResult{
|
||||
|
||||
Reference in New Issue
Block a user