f9b2834171
Required also converting some of the transaction functions to WriteTxn because TxnRO() called the same helper as TxnRW. This change allows us to return a memdb.Txn for read-only txn instead of wrapping them with state.txn.
14 lines
293 B
Go
14 lines
293 B
Go
// +build !consulent
|
|
|
|
package state
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/agent/structs"
|
|
memdb "github.com/hashicorp/go-memdb"
|
|
)
|
|
|
|
func intentionListTxn(tx ReadTxn, _ *structs.EnterpriseMeta) (memdb.ResultIterator, error) {
|
|
// Get all intentions
|
|
return tx.Get(intentionsTableName, "id")
|
|
}
|