summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_mongod.cpp
diff options
context:
space:
mode:
authorDan Pasette <dan@mongodb.com>2017-09-18 13:15:48 -0400
committerDan Pasette <dan@mongodb.com>2017-09-20 15:07:45 -0400
commitd5d61785d59f62e29ba01843f8c15cf08a5ca55a (patch)
tree72e5ce5ed4948b206ed7eab302e08873d5c64975 /src/mongo/db/service_entry_point_mongod.cpp
parent7a15db88968b9f6dd4418f4a89a2826c82b2ecac (diff)
downloadmongo-d5d61785d59f62e29ba01843f8c15cf08a5ca55a.tar.gz
SERVER-21677 Remove "diaglog" support from the server
Diffstat (limited to 'src/mongo/db/service_entry_point_mongod.cpp')
-rw-r--r--src/mongo/db/service_entry_point_mongod.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp
index 1e24a469a1d..dfec6d0382b 100644
--- a/src/mongo/db/service_entry_point_mongod.cpp
+++ b/src/mongo/db/service_entry_point_mongod.cpp
@@ -44,7 +44,6 @@
#include "mongo/db/curop_metrics.h"
#include "mongo/db/cursor_manager.h"
#include "mongo/db/dbdirectclient.h"
-#include "mongo/db/diag_log.h"
#include "mongo/db/initialize_operation_session_info.h"
#include "mongo/db/introspect.h"
#include "mongo/db/jsobj.h"
@@ -107,18 +106,6 @@ const StringMap<int> cmdWhitelist = {{"delete", 1},
{"refreshLogicalSessionCacheNow", 1},
{"update", 1}};
-inline void opread(const Message& m) {
- if (_diaglog.getLevel() & 2) {
- _diaglog.readop(m.singleData().view2ptr(), m.header().getLen());
- }
-}
-
-inline void opwrite(const Message& m) {
- if (_diaglog.getLevel() & 1) {
- _diaglog.writeop(m.singleData().view2ptr(), m.header().getLen());
- }
-}
-
void generateLegacyQueryErrorResponse(const AssertionException* exception,
const QueryMessage& queryMessage,
CurOp* curop,
@@ -1081,17 +1068,9 @@ DbResponse ServiceEntryPointMongod::handleRequest(OperationContext* opCtx, const
if (op == dbQuery) {
if (nsString.isCommand()) {
isCommand = true;
- opwrite(m);
- } else {
- opread(m);
}
- } else if (op == dbGetMore) {
- opread(m);
} else if (op == dbCommand || op == dbMsg) {
isCommand = true;
- opwrite(m);
- } else {
- opwrite(m);
}
CurOp& currentOp = *CurOp::get(opCtx);