mirror of https://github.com/hashicorp/consul
revert to set NodesOnly and fix max index set
parent
88849c9030
commit
4ac54f10bc
|
@ -233,9 +233,8 @@ func (m *Internal) ServiceDump(args *structs.ServiceDumpRequest, reply *structs.
|
||||||
if idx > maxIndex {
|
if idx > maxIndex {
|
||||||
maxIndex = idx
|
maxIndex = idx
|
||||||
}
|
}
|
||||||
reply.Index = maxIndex
|
|
||||||
}
|
}
|
||||||
|
reply.Index = maxIndex
|
||||||
raw, err := filter.Execute(reply.Nodes)
|
raw, err := filter.Execute(reply.Nodes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not filter local service dump: %w", err)
|
return fmt.Errorf("could not filter local service dump: %w", err)
|
||||||
|
|
|
@ -295,7 +295,7 @@ func (s *handlerMeshGateway) handleUpdate(ctx context.Context, u UpdateEvent, sn
|
||||||
QueryOptions: structs.QueryOptions{Token: s.token},
|
QueryOptions: structs.QueryOptions{Token: s.token},
|
||||||
ServiceKind: structs.ServiceKindMeshGateway,
|
ServiceKind: structs.ServiceKindMeshGateway,
|
||||||
UseServiceKind: true,
|
UseServiceKind: true,
|
||||||
NodesOnly: false,
|
NodesOnly: true,
|
||||||
Source: *s.source,
|
Source: *s.source,
|
||||||
EnterpriseMeta: *entMeta,
|
EnterpriseMeta: *entMeta,
|
||||||
}, fmt.Sprintf("mesh-gateway:%s", gk.String()), s.ch)
|
}, fmt.Sprintf("mesh-gateway:%s", gk.String()), s.ch)
|
||||||
|
|
|
@ -544,7 +544,7 @@ func watchMeshGateway(ctx context.Context, opts gatewayWatchOpts) error {
|
||||||
QueryOptions: structs.QueryOptions{Token: opts.token},
|
QueryOptions: structs.QueryOptions{Token: opts.token},
|
||||||
ServiceKind: structs.ServiceKindMeshGateway,
|
ServiceKind: structs.ServiceKindMeshGateway,
|
||||||
UseServiceKind: true,
|
UseServiceKind: true,
|
||||||
NodesOnly: false,
|
NodesOnly: true,
|
||||||
Source: opts.source,
|
Source: opts.source,
|
||||||
EnterpriseMeta: *structs.DefaultEnterpriseMetaInPartition(opts.key.Partition),
|
EnterpriseMeta: *structs.DefaultEnterpriseMetaInPartition(opts.key.Partition),
|
||||||
}, correlationId, opts.notifyCh)
|
}, correlationId, opts.notifyCh)
|
||||||
|
|
Loading…
Reference in New Issue