summaryrefslogtreecommitdiff
path: root/src/mongo/s/shardkey.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-9027: allow dbref shard keysScott Hernandez2013-03-281-3/+24
|
* SERVER-2001 KeyPattern class; utilities for more general index & shard key specsKevin Matulef2012-10-151-17/+7
| | | | | | | | | | The KeyPattern class is an abstraction for defining more general expression-based keys (both index keys and shard keys). This class provide some utility functions for extracting keys based on an expression, and computing range bounds based on an expression. This patch lays the groundwork and begins to make use of KeyPatterns. The idea is that to implement more general key expressions, we will only need to enhance the functions in this class.
* SERVER-2001 change shard key validation to allow hashed shard keysKevin Matulef2012-10-101-0/+22
| | | | | | | This changes the top-level shard key validation to allow shard keys such as {a : "hashed"}. It also adds some helper functions for determining when a unique index is compatible with a given shard key, and a variety of unit tests and a js test.
* SERVER-2001 don't trigger 'split-at-top' heuristic with special shard keysKevin Matulef2012-10-041-0/+27
|
* Separate functions for locating documents vs locating points in the ↵Kevin Matulef2012-09-251-15/+4
| | | | shard-key space
* move isPrefixOf utility to BSONObj classKevin Matulef2012-06-031-29/+1
|
* Fix line endingsTad Marshall2012-04-131-1/+1
| | | | One line had a CRLF.
* Rename the UnitTest class to StartupTest, and the containing file to ↵Andy Schwerin2012-04-051-2/+2
| | | | startup_test.
* SERVER-5348 make dbclient.h the main C++ driver include fileEric Milkie2012-04-021-0/+1
| | | | | | | | This change fixes some #defines of common C functions so that their definitions do not leak into consumer code. I also had to change Labeler SIZE because it conflicts with Windows SIZE. pch.h is on its way out, but for now it's hanging around.
* replace assert with verify SERVER-1259Eliot Horowitz2012-03-261-32/+32
|
* Merge remote branch 'main/master'dwight2012-02-061-1/+15
|\
| * hasShardKey should return false if using $ops SERVER-3743Mathias Stearn2012-02-061-1/+15
| |
| * SERVER-4683 this commit is only a tweak, but the bufbuilder estimate was ↵dwight2012-01-141-1/+1
| | | | | | | | always too small
* | SERVER-4328 roll back some collection level concurrency things - we will ↵dwight2012-01-141-1/+1
|/ | | | take a different approach
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+273