Move IndexEntryName helpers to common files (#12365)

pull/12367/head
Chris S. Kim 3 years ago committed by GitHub
parent 6051c68620
commit 154b781bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

@ -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
}
Loading…
Cancel
Save