Skip to content

Add swap/3 API #31

Merged
merged 1 commit into from Aug 22, 2013

2 participants

@rzezeski

Add ability to atomically swap the callback module for a given code
range. The exact code range must already be registered or an error
tuple is returned.

NOTE: This is needed for migrating from Riak Search to Yokozuna, see basho/yokozuna#20.

@seancribbs

Tests?

@rzezeski rzezeski Add swap/3 API
Add ability to atomically swap the callback module for a given code
range.  The exact code range must already be registered or an error
tuple is returned.
7130463
@rzezeski

Forced pushed fix + test.

@seancribbs

:+1: I could bikeshed about testing the registration swap independent of running server processes, but your test covers both the swap and the result of swapping.

@rzezeski

How do bike sheds even get painted.

Thanks for review.

@rzezeski rzezeski merged commit ce34d49 into master Aug 22, 2013

1 check failed

Details default The Travis CI build could not complete due to an error
@rzezeski rzezeski referenced this pull request in basho/yokozuna Aug 22, 2013
Closed

Riak Search Migration [JIRA: RIAK-1713] #20

7 of 10 tasks complete
@seancribbs seancribbs deleted the feature/rz/swap branch Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.