Permalink
Browse files

SERVER-5872 use ScopedDBConnection when we talk to other shards durin…

…g autosplit
  • Loading branch information...
1 parent 17c3a2c commit 16fdca349817b8be0e6a0b5e9c37a2e1d294cf43 @milkie milkie committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 s/chunk.cpp
View
@@ -107,7 +107,7 @@ namespace mongo {
}
BSONObj Chunk::_getExtremeKey( int sort ) const {
- ShardConnection conn( getShard().getConnString() , _manager->getns() );
+ ScopedDbConnection conn( getShard().getConnString() );
Query q;
if ( sort == 1 ) {
q.sort( _manager->getShardKey().key() );

0 comments on commit 16fdca3

Please sign in to comment.