summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/isself.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/isself.h')
-rw-r--r--src/mongo/db/repl/isself.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/mongo/db/repl/isself.h b/src/mongo/db/repl/isself.h
index cbcbbd9f031..19b61bf47bd 100644
--- a/src/mongo/db/repl/isself.h
+++ b/src/mongo/db/repl/isself.h
@@ -34,30 +34,30 @@
#include "mongo/bson/oid.h"
namespace mongo {
- struct HostAndPort;
+struct HostAndPort;
namespace repl {
- /**
- * An identifier unique to this instance. Used by isSelf to see if we are talking
- * to ourself or someone else.
- */
- extern OID instanceId;
-
- /**
- * Returns true if "hostAndPort" identifies this instance.
- */
- bool isSelf(const HostAndPort& hostAndPort);
-
- /**
- * Returns all the IP addresses bound to the network interfaces of this machine.
- * This requires a syscall. If the ipv6enabled parameter is true, both IPv6 AND IPv4
- * addresses will be returned.
- *
- * Note: this only works on Linux and Windows. All calls should be properly ifdef'd,
- * otherwise an invariant will be triggered.
- */
- std::vector<std::string> getBoundAddrs(const bool ipv6enabled);
-
-} // namespace repl
-} // namespace mongo
+/**
+ * An identifier unique to this instance. Used by isSelf to see if we are talking
+ * to ourself or someone else.
+ */
+extern OID instanceId;
+
+/**
+ * Returns true if "hostAndPort" identifies this instance.
+ */
+bool isSelf(const HostAndPort& hostAndPort);
+
+/**
+ * Returns all the IP addresses bound to the network interfaces of this machine.
+ * This requires a syscall. If the ipv6enabled parameter is true, both IPv6 AND IPv4
+ * addresses will be returned.
+ *
+ * Note: this only works on Linux and Windows. All calls should be properly ifdef'd,
+ * otherwise an invariant will be triggered.
+ */
+std::vector<std::string> getBoundAddrs(const bool ipv6enabled);
+
+} // namespace repl
+} // namespace mongo