Pass txn into service list queries

This commit is contained in:
freddygv 2021-03-16 09:33:08 -06:00
parent 26ba0c0fc8
commit fed983fe9a
1 changed files with 1 additions and 1 deletions

View File

@ -983,7 +983,7 @@ func (s *Store) IntentionTopology(ws memdb.WatchSet,
}
}
index, allServices, err := s.ServiceList(ws, func(svc *structs.ServiceNode) bool {
index, allServices, err := serviceListTxn(tx, ws, func(svc *structs.ServiceNode) bool {
// Only include ingress gateways as downstreams, since they cannot receive service mesh traffic
// TODO(freddy): One remaining issue is that this includes non-Connect services (typical services without a proxy)
// Ideally those should be excluded as well, since they can't be upstreams/downstreams without a proxy.