consul/state: read transactions don't block writes

pull/1291/head
Ryan Uber 9 years ago committed by James Phillips
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…
Cancel
Save