summaryrefslogtreecommitdiff
path: root/src/mongo/s/request.cpp
diff options
context:
space:
mode:
authorKevin Matulef <matulef@gmail.com>2012-09-25 02:00:26 -0400
committerKevin Matulef <matulef@gmail.com>2012-09-25 02:00:26 -0400
commitc470ef7c9c3df63ecf4b06b416292fe0102fe9f2 (patch)
tree862e5f040879cdf5b8863a09e4650e252eadfe33 /src/mongo/s/request.cpp
parent924d00cee993434dd139ade27b358fbc8ce44fe2 (diff)
downloadmongo-c470ef7c9c3df63ecf4b06b416292fe0102fe9f2.tar.gz
Separate functions for locating documents vs locating points in the shard-key space
Diffstat (limited to 'src/mongo/s/request.cpp')
-rw-r--r--src/mongo/s/request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/request.cpp b/src/mongo/s/request.cpp
index fdb1fe0e0f5..ef83277365e 100644
--- a/src/mongo/s/request.cpp
+++ b/src/mongo/s/request.cpp
@@ -103,7 +103,7 @@ namespace mongo {
if ( _chunkManager ) {
if ( _chunkManager->numChunks() > 1 )
throw UserException( 8060 , "can't call primaryShard on a sharded collection" );
- return _chunkManager->findChunk( _chunkManager->getShardKey().globalMin() )->getShard();
+ return _chunkManager->findIntersectingChunk( _chunkManager->getShardKey().globalMin() )->getShard();
}
Shard s = _config->getShard( getns() );
uassert( 10194 , "can't call primaryShard on a sharded collection!" , s.ok() );