mirror of https://github.com/status-im/consul.git
Move IndexEntryName helpers to common files (#12365)
This commit is contained in:
parent
6051c68620
commit
154b781bc8
|
@ -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