summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-07-20 14:37:50 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-07-21 14:14:08 -0400
commit88e9fd1a09afb37e61937e585b334685d75c757a (patch)
tree240c5fe3cd4a4835f42c3ab40f0e18ea3fd8ecbf /src/mongo/tools
parenta69663922c5e02c144ac0cf3139cba22dd8ddefb (diff)
downloadmongo-88e9fd1a09afb37e61937e585b334685d75c757a.tar.gz
SERVER-19494 Don't shutdown mongobridge on empty response
Diffstat (limited to 'src/mongo/tools')
-rw-r--r--src/mongo/tools/bridge.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index e24df98dc67..d43fac3d0e5 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -105,8 +105,11 @@ public:
dest.port().call(m, response);
// nothing to reply with?
- if (response.empty())
- cleanup(0);
+ if (response.empty()) {
+ cout << "end connection " << dest.toString() << endl;
+ mp_.shutdown();
+ break;
+ }
mp_.reply(m, response, oldId);
while (exhaust) {