소스 검색

Merge pull request #296 from Shopify/clear-retry-buffer

Oops
Evan Huus 10 년 전
부모
커밋
542246cf1e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      producer.go

+ 1 - 0
producer.go

@@ -443,6 +443,7 @@ func (p *Producer) leaderDispatcher(topic string, partition int32, input chan *M
 					}
 
 				flushDone:
+					retryState[highWatermark].buf = nil
 					if retryState[highWatermark].expectChaser {
 						Logger.Printf("producer/leader state change to [retrying-%d] on %s/%d\n", highWatermark, topic, partition)
 						break