From 05735e39a591c7d74cc875faf390e65a08673f8e Mon Sep 17 00:00:00 2001 From: James Phillips Date: Mon, 16 Jan 2017 10:28:46 -0800 Subject: [PATCH] Removes some incorrect comments. We can't actually return a fine-grained index from these tables unless support is added for tombstones. Otherwise, the index could slip backwards as things are deleted. --- consul/state/catalog.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/consul/state/catalog.go b/consul/state/catalog.go index a6c4448e33..801a83d77d 100644 --- a/consul/state/catalog.go +++ b/consul/state/catalog.go @@ -1041,10 +1041,7 @@ func (s *StateStore) deleteCheckTxn(tx *memdb.Txn, idx uint64, watches *DumbWatc return nil } -// CheckServiceNodes is used to query all nodes and checks for a given service -// The results are compounded into a CheckServiceNodes, and the index returned -// is the maximum index observed over any node, check, or service in the result -// set. +// CheckServiceNodes is used to query all nodes and checks for a given service. func (s *StateStore) CheckServiceNodes(serviceName string) (uint64, structs.CheckServiceNodes, error) { tx := s.db.Txn(false) defer tx.Abort() @@ -1067,9 +1064,7 @@ func (s *StateStore) CheckServiceNodes(serviceName string) (uint64, structs.Chec } // CheckServiceTagNodes is used to query all nodes and checks for a given -// service, filtering out services that don't contain the given tag. The results -// are compounded into a CheckServiceNodes, and the index returned is the maximum -// index observed over any node, check, or service in the result set. +// service, filtering out services that don't contain the given tag. func (s *StateStore) CheckServiceTagNodes(serviceName, tag string) (uint64, structs.CheckServiceNodes, error) { tx := s.db.Txn(false) defer tx.Abort()