summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/repl_client_info.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/repl_client_info.cpp')
-rw-r--r--src/mongo/db/repl/repl_client_info.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/repl/repl_client_info.cpp b/src/mongo/db/repl/repl_client_info.cpp
index 631c121c223..18191bfaffc 100644
--- a/src/mongo/db/repl/repl_client_info.cpp
+++ b/src/mongo/db/repl/repl_client_info.cpp
@@ -39,15 +39,15 @@
namespace mongo {
namespace repl {
- const Client::Decoration<ReplClientInfo> ReplClientInfo::forClient =
- Client::declareDecoration<ReplClientInfo>();
+const Client::Decoration<ReplClientInfo> ReplClientInfo::forClient =
+ Client::declareDecoration<ReplClientInfo>();
- long long ReplClientInfo::getTerm() {
- if (_cachedTerm == kUninitializedTerm) {
- _cachedTerm = getGlobalReplicationCoordinator()->getTerm();
- }
- return _cachedTerm;
+long long ReplClientInfo::getTerm() {
+ if (_cachedTerm == kUninitializedTerm) {
+ _cachedTerm = getGlobalReplicationCoordinator()->getTerm();
}
+ return _cachedTerm;
+}
} // namespace repl
} // namespace mongo