mirror of https://github.com/status-im/consul.git
consul/state: read transactions don't block writes
This commit is contained in:
parent
0085512eb8
commit
f9823a2a08
|
@ -85,7 +85,7 @@ func (s *StateStore) ensureNodeTxn(idx uint64, node *structs.Node, tx *memdb.Txn
|
|||
|
||||
// GetNode is used to retrieve a node registration by node ID.
|
||||
func (s *StateStore) GetNode(id string) (*structs.Node, error) {
|
||||
tx := s.db.Txn(true)
|
||||
tx := s.db.Txn(false)
|
||||
defer tx.Abort()
|
||||
|
||||
// Retrieve the node from the state store
|
||||
|
|
Loading…
Reference in New Issue