From e8931b868cff4b71aafb590ddcf1dfa788622d20 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Thu, 28 Jan 2021 20:30:08 -0500 Subject: [PATCH] state: use indexID this change was already made to enterprise, so backporting it. --- agent/consul/state/catalog_schema.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/agent/consul/state/catalog_schema.go b/agent/consul/state/catalog_schema.go index a38ae349b9..91f7be358d 100644 --- a/agent/consul/state/catalog_schema.go +++ b/agent/consul/state/catalog_schema.go @@ -30,8 +30,8 @@ func nodesTableSchema() *memdb.TableSchema { return &memdb.TableSchema{ Name: tableNodes, Indexes: map[string]*memdb.IndexSchema{ - "id": { - Name: "id", + indexID: { + Name: indexID, AllowMissing: false, Unique: true, Indexer: &memdb.StringFieldIndex{ @@ -211,8 +211,8 @@ func gatewayServicesTableNameSchema() *memdb.TableSchema { return &memdb.TableSchema{ Name: gatewayServicesTableName, Indexes: map[string]*memdb.IndexSchema{ - "id": { - Name: "id", + indexID: { + Name: indexID, AllowMissing: false, Unique: true, Indexer: &memdb.CompoundIndex{ @@ -255,8 +255,8 @@ func topologyTableNameSchema() *memdb.TableSchema { return &memdb.TableSchema{ Name: topologyTableName, Indexes: map[string]*memdb.IndexSchema{ - "id": { - Name: "id", + indexID: { + Name: indexID, AllowMissing: false, Unique: true, Indexer: &memdb.CompoundIndex{