elasticsearch/elasticsearch — pull request #8271 by bleskes (2014-10-29 11:27:16+00:00)
Title: Recovery: change check for finished to a ref count check

we current check that the recovery is not finished when people access the status local variables. This is wrong and we should check for the refcount being > 0 as it is OK to use the status after it has marked as finished but there are still on going, in-flight reference to it.

This is a follow up on #8092