I'm going to push this to screened, but it still needs a full review. Some preliminary comments:
I'm not entirely convinced that the code change (to reading recorded
rather than recorded+pending) is always correct; we should write some
more tests for various scenarios. Still, the test case clearly
demonstrates a bug, and we don't have any other existing tests that are
broken, so the patch does move things forward.
The variable in_pending later on in the same function should be renamed
as it's no longer correct.
|