From 859ffe14e1afa9701289c8f7f4bee9ea33886272 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Sat, 22 Aug 2015 13:44:49 -0700 Subject: [PATCH] consul/state: read transactions don't block writes --- consul/state/state_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/state/state_store.go b/consul/state/state_store.go index 1369d732b..bc67c462a 100644 --- a/consul/state/state_store.go +++ b/consul/state/state_store.go @@ -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