chiark / gitweb /
Fix a misdesign I must have missed when I reviewed the Killer patch:
authorSimon Tatham <anakin@pobox.com>
Thu, 30 Apr 2009 17:56:56 +0000 (17:56 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 30 Apr 2009 17:56:56 +0000 (17:56 +0000)
commit3cd83d05e899e62232b68ea95cf7f07505ebd79f
treec469980a44497defe7c8b8106ecd8d7dd9c155dc
parent4bb9232bcb2a8d5c7e43e54136f839df142e6204
Fix a misdesign I must have missed when I reviewed the Killer patch:
merge_some_cages() was written in the assumption that it would
always be able to do something, in that it returned void on success
and if it couldn't find anything to do it would just loop round
forever trying the same things over and over again.

Now it makes a methodical list of the pairs of cages which are merge
candidates, goes through them in a random order until it finds a
viable one, and returns a boolean indicating whether it succeeded or
ran out of candidates.

A test case which previously hung and now does not is "solo
--generate 1 7jxkdt#12345-10".

[originally from svn r8541]
solo.c