diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-01-16 16:50:03 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2019-01-20 16:39:28 -0500 |
commit | e4f26d25632f94a6577028ccefd32069550628b6 (patch) | |
tree | 22ec8bcbe00cc655b8da8d054254228bf40d2471 /src/mongo/s/is_mongos.h | |
parent | 1055387f2d7f4df6836b435c92aa3874e5aaed73 (diff) | |
download | mongo-e4f26d25632f94a6577028ccefd32069550628b6.tar.gz |
SERVER-9043/SERVER-31156 Link flushRouterConfig on MongoD and make it accept a namespace argument
Diffstat (limited to 'src/mongo/s/is_mongos.h')
-rw-r--r-- | src/mongo/s/is_mongos.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/mongo/s/is_mongos.h b/src/mongo/s/is_mongos.h index 2567f7ba6d9..90184105c8f 100644 --- a/src/mongo/s/is_mongos.h +++ b/src/mongo/s/is_mongos.h @@ -31,9 +31,25 @@ #pragma once namespace mongo { -/** Returns true when the running process is `mongos` and false otherwise. */ + +/** + * Returns true when the running process is `mongos` and false otherwise. + */ bool isMongos(); -/** Set the global state flag indicating whether the running process is `mongos` or not. */ +/** + * Set the global state flag indicating whether the running process is `mongos` or not. + */ void setMongos(const bool state = true); + +/** + * Returns whether this node is config server or a shard. + */ +bool isClusterNode(); + +/** + * Returns whether this node is config server, shard or mongos. + */ +bool isClusterNodeOrRouter(); + } // namespace mongo |