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 a5d5577cdd
commit 859ffe14e1
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