diff options
author | Kevin Matulef <matulef@gmail.com> | 2012-09-25 02:00:26 -0400 |
---|---|---|
committer | Kevin Matulef <matulef@gmail.com> | 2012-09-25 02:00:26 -0400 |
commit | c470ef7c9c3df63ecf4b06b416292fe0102fe9f2 (patch) | |
tree | 862e5f040879cdf5b8863a09e4650e252eadfe33 /src/mongo/s/request.cpp | |
parent | 924d00cee993434dd139ade27b358fbc8ce44fe2 (diff) | |
download | mongo-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.cpp | 2 |
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() ); |