diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-08-21 21:33:52 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-08-23 20:07:28 -0400 |
commit | 693f7c656aaea0f96af0032a46953a407a58eae9 (patch) | |
tree | caca8a2ac11be803bd181ca6170a547d055af0ce /src/mongo | |
parent | 0240a830447c54a63c5a925a96544450a08e8831 (diff) | |
download | mongo-693f7c656aaea0f96af0032a46953a407a58eae9.tar.gz |
SERVER-29530 Fix variable shadowing in conn pool test fixture
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/executor/connection_pool_test_fixture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/executor/connection_pool_test_fixture.cpp b/src/mongo/executor/connection_pool_test_fixture.cpp index a2e3215393f..8d0ee199d1e 100644 --- a/src/mongo/executor/connection_pool_test_fixture.cpp +++ b/src/mongo/executor/connection_pool_test_fixture.cpp @@ -188,8 +188,8 @@ void ConnectionImpl::setup(Milliseconds timeout, SetupCallback cb) { _setupQueue.pop_front(); _pushSetupQueue.pop_front(); - auto cb = connPtr->_setupCallback; - cb(connPtr, callback()); + auto refreshCb = connPtr->_setupCallback; + refreshCb(connPtr, callback()); } } @@ -209,8 +209,8 @@ void ConnectionImpl::refresh(Milliseconds timeout, RefreshCallback cb) { _refreshQueue.pop_front(); _pushRefreshQueue.pop_front(); - auto cb = connPtr->_refreshCallback; - cb(connPtr, callback()); + auto refreshCb = connPtr->_refreshCallback; + refreshCb(connPtr, callback()); } } |