Skip to content

Commit

Permalink
this fixed a memory leak, but caused bulk indexing to fail. reverting…
Browse files Browse the repository at this point in the history
… for now.
  • Loading branch information
mattbaird committed Jun 18, 2014
1 parent 736b7e4 commit 0c98885
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/bulk.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ func (b *BulkIndexer) startDocChannel() {
func (b *BulkIndexer) send(buf *bytes.Buffer) {
//b2 := *b.buf
b.sendBuf <- buf
b.buf.Reset()
b.buf = new(bytes.Buffer)
// b.buf.Reset()
b.docCt = 0
}

Expand Down

0 comments on commit 0c98885

Please sign in to comment.