fluent/fluentd — pull request #87 by tagomoris (2012-12-03 12:55:01+00:00)
Title: fix to increment @rr just before @weight_array access

ForwardOutput node selection has bug of OutOfIndex with @rr and @weight_array after resize of @weight_array.

Just after recovery of detached nodes, @weight_array is shortened, but @rr is not initialized and may be greater than @weight_array.length. This makes OutOfIndex (node is nil).

This pullreq fixes this problem.

(@rr starts from 1 not 0, but this is very little problem....)