Move IndexEntryName helpers to common files (#12365)
This commit is contained in:
parent
375524df84
commit
18096fd2fb
|
@ -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…
Reference in New Issue