Move IndexEntryName helpers to common files (#12365)

This commit is contained in:
Chris S. Kim 2022-02-16 12:56:38 -05:00 committed by GitHub
parent 375524df84
commit 18096fd2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 8 deletions

View File

@ -116,11 +116,3 @@ func kvsDeleteWithEntry(tx WriteTxn, entry *structs.DirEntry, idx uint64) error
return nil
}
func partitionedIndexEntryName(entry string, _ string) string {
return entry
}
func partitionedAndNamespacedIndexEntryName(entry string, _ *structs.EnterpriseMeta) string {
return entry
}

View File

@ -0,0 +1,14 @@
//go:build !consulent
// +build !consulent
package state
import "github.com/hashicorp/consul/agent/structs"
func partitionedIndexEntryName(entry string, _ string) string {
return entry
}
func partitionedAndNamespacedIndexEntryName(entry string, _ *structs.EnterpriseMeta) string {
return entry
}