fujimoto/flare — pull request #24 by ikehara (2012-01-20 08:53:17+00:00)
Title: fix post proxy problem during preparation

A master must always replicate update requests to its slave. But, while a new master is in preparation state or ready state, some proxy requests that will be targeted to the preparing partition after the preparation are sent to the preparing slaves although they should be sent to the slaves in the partition that the master belongs to.

This commit fixes:

1. slave node selection code in cluster::post_proxy_write() - a master always selects master's slaves.
2. incoming request filtering code in cluster::pre_proxy_write() - a slave accepts requests if their target partition has itself.

Thanks in advance.