forked from mongodb/mongo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SERVER-2001 calculate query bounds using more general key expressions
In sharding, given a key expression like {a : 1} or {a : -1} we must translate a query to a set of bounds to figure out which shards are relevant. This patch amends the keyBounds calculation function so that patterns which start with "hashed" fields calculate the right bounds.
- Loading branch information
Kevin Matulef
committed
Oct 15, 2012
1 parent
732f351
commit 5a28905
Showing
2 changed files
with
129 additions
and
36 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