diff options
author | Alberto Lerner <alerner@10gen.com> | 2010-09-20 15:35:20 -0400 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-09-20 15:35:20 -0400 |
commit | 44a681a83607812a6e063d557f2f9fd245020e19 (patch) | |
tree | a7e8dda2bdf9196b86ffe5f3d2fd2c48f1934706 /s/d_migrate.cpp | |
parent | f8897d2e651cc11fb9d67f1a295b60835a6ebc97 (diff) | |
download | mongo-44a681a83607812a6e063d557f2f9fd245020e19.tar.gz |
avoid shadowing variable in scope
Diffstat (limited to 's/d_migrate.cpp')
-rw-r--r-- | s/d_migrate.cpp | 18 |
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: "; |