diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2015-11-06 13:40:59 -0500 |
commit | ce3e47aed550efdcd902ef4d565429bd373e8007 (patch) | |
tree | 2213366c89fbebbdee3925e04f740ef16b944cc6 /src/mongo/logger | |
parent | 36b0d1069a878f1f2e42b79d5b5b539b6c1d4a5d (diff) | |
download | mongo-ce3e47aed550efdcd902ef4d565429bd373e8007.tar.gz |
SERVER-19301 Expose new MongoBridge API for network partition testing.
Changes the existing architecture of having a mongobridge process for
each unidirection link between two mongod processes in a replica set to
having a single mongobridge process per node in the replica set. The
mongobridge process is able to distinguish between connections from
different hosts by using the "hostInfo" field in the initial isMaster
command request.
Diffstat (limited to 'src/mongo/logger')
-rw-r--r-- | src/mongo/logger/log_component.cpp | 5 | ||||
-rw-r--r-- | src/mongo/logger/log_component.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/logger/log_component.cpp b/src/mongo/logger/log_component.cpp index 8f3c82b49b6..fc83d76aaf2 100644 --- a/src/mongo/logger/log_component.cpp +++ b/src/mongo/logger/log_component.cpp @@ -82,6 +82,7 @@ LogComponent LogComponent::parent() const { return kNumLogComponents; DECLARE_LOG_COMPONENT_PARENT(kJournal, kStorage); DECLARE_LOG_COMPONENT_PARENT(kASIO, kNetwork); + DECLARE_LOG_COMPONENT_PARENT(kBridge, kNetwork); case kNumLogComponents: return kNumLogComponents; default: @@ -124,6 +125,8 @@ StringData LogComponent::toStringData() const { return createStringData("ftdc"); case kASIO: return createStringData("asio"); + case kBridge: + return createStringData("bridge"); case kNumLogComponents: return createStringData("total"); // No default. Compiler should complain if there's a log component that's not handled. @@ -192,6 +195,8 @@ StringData LogComponent::getNameForLog() const { return createStringData("FTDC "); case kASIO: return createStringData("ASIO "); + case kBridge: + return createStringData("BRIDGE "); case kNumLogComponents: return createStringData("TOTAL "); // No default. Compiler should complain if there's a log component that's not handled. diff --git a/src/mongo/logger/log_component.h b/src/mongo/logger/log_component.h index a771e20558a..6a28190353f 100644 --- a/src/mongo/logger/log_component.h +++ b/src/mongo/logger/log_component.h @@ -59,6 +59,7 @@ public: kWrite, kFTDC, kASIO, + kBridge, kNumLogComponents }; |