summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/tee_buffer_test.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2016-12-05 16:54:29 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2016-12-05 17:00:24 -0500
commit20ce1aa922673f758cc6c2edc47146c6314a4f57 (patch)
tree3ece6785ee81871af86f68bef3a86d4361c3d32b /src/mongo/db/pipeline/tee_buffer_test.cpp
parent25a351ee3225f3f957beb483d70382a19b7e2a0a (diff)
downloadmongo-20ce1aa922673f758cc6c2edc47146c6314a4f57.tar.gz
SERVER-27211 de-duplicate symbol `isMongos`
A hidden global variable representing the "is Mongos process" state can now be accessed and updated by the `is_mongos.h` interface. All tests defining their own versions (and test crutches) are replaced with calls to global registration of the desired state of this variable. The `mongos` main executable now sets this hidden global state as part of its startup code.
Diffstat (limited to 'src/mongo/db/pipeline/tee_buffer_test.cpp')
-rw-r--r--src/mongo/db/pipeline/tee_buffer_test.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/tee_buffer_test.cpp b/src/mongo/db/pipeline/tee_buffer_test.cpp
index 0a8fc7d22a2..2e4495c3d5f 100644
--- a/src/mongo/db/pipeline/tee_buffer_test.cpp
+++ b/src/mongo/db/pipeline/tee_buffer_test.cpp
@@ -37,12 +37,6 @@
#include "mongo/util/assert_util.h"
namespace mongo {
-
-// Crutch.
-bool isMongos() {
- return false;
-}
-
namespace {
TEST(TeeBufferTest, ShouldRequireAtLeastOneConsumer) {