소스 검색

restrict refresh ring to heartBeat (#1015)

* don't trace unless query is trace enabled

When 'nodetool settraceprobability' is used,
it's possible to get a response with trace information
even though client did not specifically mark the query
for tracing.

* added myself as an author

* restrict refresh ring to heartBeat

GetHosts uses queries on control connection. Any query error will
cause reconnection and refresh ring which calls GetHosts and thus
deadlocks.

Also it seems neater to have the ring refresh be done only by heartBeat.

Fixes #928
Krishnanand Thommandra 8 년 전
부모
커밋
9d3501523c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      control.go

+ 1 - 1
control.go

@@ -381,7 +381,7 @@ func (c *controlConn) HandleError(conn *Conn, err error, closed bool) {
 		return
 	}
 
-	c.reconnect(true)
+	c.reconnect(false)
 }
 
 func (c *controlConn) getConn() *connHost {