summaryrefslogtreecommitdiff
path: root/src/mongo/db/restapi.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-04 15:59:49 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-04-05 12:44:10 -0400
commit8765acc0fcc6ca3dd7158521ba8d864af4e0f2df (patch)
tree9fc35ffc0f93b334bbc846cb6ccf91250ae11252 /src/mongo/db/restapi.cpp
parent97691221bcf43245ddfd906766abc93bb617d2aa (diff)
downloadmongo-8765acc0fcc6ca3dd7158521ba8d864af4e0f2df.tar.gz
SERVER-27691 Make OperationContext::setKillAllOperations interrupt all operations
Diffstat (limited to 'src/mongo/db/restapi.cpp')
-rw-r--r--src/mongo/db/restapi.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp
index 1869858f223..393a6085529 100644
--- a/src/mongo/db/restapi.cpp
+++ b/src/mongo/db/restapi.cpp
@@ -42,7 +42,6 @@
#include "mongo/db/clientcursor.h"
#include "mongo/db/concurrency/d_concurrency.h"
#include "mongo/db/dbdirectclient.h"
-#include "mongo/db/dbhelpers.h"
#include "mongo/db/dbwebserver.h"
#include "mongo/db/repl/master_slave.h"
#include "mongo/db/repl/replication_coordinator_global.h"
@@ -53,12 +52,9 @@
namespace mongo {
-bool getInitialSyncCompleted();
-
using std::unique_ptr;
using std::string;
using std::stringstream;
-using std::endl;
using std::vector;
using namespace html;
@@ -124,7 +120,7 @@ public:
responseCode = 400;
headers.push_back("X_err: bad request");
ss << "don't know how to handle a [" << method << "]";
- log() << "don't know how to handle a [" << method << "]" << endl;
+ log() << "don't know how to handle a [" << method << "]";
}
if (html)