2023-03-28 18:39:22 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2021-11-08 21:20:50 +00:00
|
|
|
//go:build !consulent
|
2019-11-25 17:07:04 +00:00
|
|
|
// +build !consulent
|
|
|
|
|
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/go-memdb"
|
2021-02-12 23:06:56 +00:00
|
|
|
|
2022-04-05 21:10:06 +00:00
|
|
|
"github.com/hashicorp/consul/acl"
|
2019-11-25 17:07:04 +00:00
|
|
|
)
|
|
|
|
|
2020-09-02 15:24:20 +00:00
|
|
|
func getCompoundWithTxn(tx ReadTxn, table, index string,
|
2022-04-05 21:10:06 +00:00
|
|
|
_ *acl.EnterpriseMeta, idxVals ...interface{}) (memdb.ResultIterator, error) {
|
2019-12-10 02:26:41 +00:00
|
|
|
|
|
|
|
return tx.Get(table, index, idxVals...)
|
|
|
|
}
|