Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upstream_retry when multi-GET not-my-vbucket err
Change-Id: Iebbae35b0509cc16cbaf4610a3e433b60b71b94b In this implementation of handling not-my-bucket errors during ascii-to-binary proxying, we use the binary header's opaque field. moxi uses the opaque field to store either a vbucket id or a key index, depending on the command opcode. The key index is for a char array, and is used to retreive the key for a given command. Given the key, moxi can then re-retrieve the vbucket id. Given the vbucket id, finally, during a not-my-vbucket error, moxi can then call the incorrect_master() API of libvbucket.
- Loading branch information
Showing
7 changed files
with
208 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.