diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-10-14 21:54:01 -0400 |
---|---|---|
committer | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2017-10-14 21:54:01 -0400 |
commit | 2c5511c8c411c70ac1063d1209764e71f83d0b1a (patch) | |
tree | 17eefbaa6e2a7a0416ae036f26e7822d9cf8d982 /src/mongo/db/dbdirectclient.h | |
parent | 7efbb340cd781d097c153c48c64fb442bbe2a22b (diff) | |
download | mongo-2c5511c8c411c70ac1063d1209764e71f83d0b1a.tar.gz |
SERVER-31456 Expose server type on Mongo connection object.
This makes it possible to prevent the mongo shell from gossiping a
clusterTime to stand-alone mongod processes when the mongo shell is also
connected to a replica set or a sharded cluster.
Diffstat (limited to 'src/mongo/db/dbdirectclient.h')
-rw-r--r-- | src/mongo/db/dbdirectclient.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/dbdirectclient.h b/src/mongo/db/dbdirectclient.h index 4432d775e23..b410613cca5 100644 --- a/src/mongo/db/dbdirectclient.h +++ b/src/mongo/db/dbdirectclient.h @@ -97,6 +97,8 @@ public: int getMinWireVersion() final; int getMaxWireVersion() final; + bool isReplicaSetMember() const final; + bool isMongos() const final { return false; } |