diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-03-30 17:13:55 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-03-30 17:13:55 -0400 |
commit | fac9fcc1a132e220d50edfb2a071da682e460624 (patch) | |
tree | 2a64998373252d202659b4f0a7d7500322d7f065 /s/shardkey.cpp | |
parent | d1427f7232d97e31a565c2c267df2f7c780b15f8 (diff) | |
download | mongo-fac9fcc1a132e220d50edfb2a071da682e460624.tar.gz |
smarter about how to split a shard
if one side is either MIN or MAX, takes all the data and puts in one
otherwise splits on the median value
Diffstat (limited to 's/shardkey.cpp')
-rw-r--r-- | s/shardkey.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/s/shardkey.cpp b/s/shardkey.cpp index 80e5f4a6d44..f8b7253055e 100644 --- a/s/shardkey.cpp +++ b/s/shardkey.cpp @@ -28,10 +28,6 @@ namespace mongo { - inline BSONObj ShardKeyPattern::extractKey(const BSONObj& from) const { - return from.extractFields(pattern); - } - BSONObj ShardKeyPattern::globalMin() const { BSONObjBuilder b; BSONElement e = pattern.firstElement(); |