consul/state: read transactions don't block writes

This commit is contained in:
Ryan Uber 2015-08-22 13:44:49 -07:00 committed by James Phillips
parent 0085512eb8
commit f9823a2a08
1 changed files with 1 additions and 1 deletions

View File

@ -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