Make list series engine not yield empty response, which was breaking the test when shards didn't have any series.

pull/269/head
Paul Dix 2014-02-24 13:56:19 -05:00
parent 2b6dd3778f
commit 11ee648f81
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ func (self *ListSeriesEngine) YieldPoint(seriesName *string, columnNames []strin
}
func (self *ListSeriesEngine) Close() {
self.responseChan <- self.response
if len(self.response.MultiSeries) > 0 {
self.responseChan <- self.response
}
response := &protocol.Response{Type: &endStreamResponse}
self.responseChan <- response
}