summaryrefslogtreecommitdiff
path: root/s/d_migrate.cpp
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-09-20 15:35:20 -0400
committerAlberto Lerner <alerner@10gen.com>2010-09-20 15:35:20 -0400
commit44a681a83607812a6e063d557f2f9fd245020e19 (patch)
treea7e8dda2bdf9196b86ffe5f3d2fd2c48f1934706 /s/d_migrate.cpp
parentf8897d2e651cc11fb9d67f1a295b60835a6ebc97 (diff)
downloadmongo-44a681a83607812a6e063d557f2f9fd245020e19.tar.gz
avoid shadowing variable in scope
Diffstat (limited to 's/d_migrate.cpp')
-rw-r--r--s/d_migrate.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp
index a0be62b5484..2ce13e51bb8 100644
--- a/s/d_migrate.cpp
+++ b/s/d_migrate.cpp
@@ -551,17 +551,17 @@ namespace mongo {
{ // 3.c
- ScopedDbConnection conn( to );
+ ScopedDbConnection connTo( to );
BSONObj res;
- bool ok = conn->runCommand( "admin" ,
- BSON( "_recvChunkStart" << ns <<
- "from" << from <<
- "min" << min <<
- "max" << max <<
- "configServer" << configServer.modelServer()
+ bool ok = connTo->runCommand( "admin" ,
+ BSON( "_recvChunkStart" << ns <<
+ "from" << from <<
+ "min" << min <<
+ "max" << max <<
+ "configServer" << configServer.modelServer()
) ,
- res );
- conn.done();
+ res );
+ connTo.done();
if ( ! ok ){
errmsg = "_recvChunkStart failed: ";