fix post proxy problem during preparation #24

Merged
merged 1 commit into from Jan 20, 2012

Projects

None yet

2 participants

@ikehara
ikehara commented Jan 20, 2012

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.

@fujimoto fujimoto merged commit bfb9fe2 into gree:master Jan 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment