summaryrefslogtreecommitdiff
path: root/s/chunk.cpp
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-12-29 10:53:02 -0500
committerAlberto Lerner <alerner@10gen.com>2010-12-29 10:53:02 -0500
commitacb40fb68460edfa7560f5e914ca7834abffa0c4 (patch)
tree2f1b98f0f1023afd90c115669944e05a8d4c4463 /s/chunk.cpp
parent70cf11916e9a1fd047ae5b684712bc7493ed1e0a (diff)
downloadmongo-acb40fb68460edfa7560f5e914ca7834abffa0c4.tar.gz
SERVER-2306 split request now carries expected shard information
Diffstat (limited to 's/chunk.cpp')
-rw-r--r--s/chunk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/s/chunk.cpp b/s/chunk.cpp
index d3af3ef840b..fa589d2e1f9 100644
--- a/s/chunk.cpp
+++ b/s/chunk.cpp
@@ -237,7 +237,7 @@ namespace mongo {
uassert( 13332 , "need a split key to split chunk" , !m.empty() );
uassert( 13333 , "can't split a chunk in that many parts", m.size() < maxSplitPoints );
uassert( 13003 , "can't split a chunk with only one distinct value" , _min.woCompare(_max) );
-
+
ScopedDbConnection conn( getShard().getConnString() );
BSONObjBuilder cmd;
@@ -245,6 +245,7 @@ namespace mongo {
cmd.append( "keyPattern" , _manager->getShardKey().key() );
cmd.append( "min" , getMin() );
cmd.append( "max" , getMax() );
+ cmd.append( "from" , getShard().getConnString() );
cmd.append( "splitKeys" , m );
cmd.append( "shardId" , genID() );
cmd.append( "configdb" , configServer.modelServer() );