summaryrefslogtreecommitdiff
path: root/src/mongo/executor
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2017-04-26 13:05:48 -0400
committerAndrew Morrow <acm@mongodb.com>2017-05-01 11:41:38 -0400
commitb779cb0bf72267b8d6cefbb4739c118a720026da (patch)
tree6f9c9e6f5f8bb40f6c0446df61272307eb032112 /src/mongo/executor
parent3d5c9f8da43874e8d058f323d6f4938efc2a3299 (diff)
downloadmongo-b779cb0bf72267b8d6cefbb4739c118a720026da.tar.gz
SERVER-29012 Enable ASAN strict init order checking and fix revealed issues
Diffstat (limited to 'src/mongo/executor')
-rw-r--r--src/mongo/executor/remote_command_request.cpp4
-rw-r--r--src/mongo/executor/remote_command_request.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/executor/remote_command_request.cpp b/src/mongo/executor/remote_command_request.cpp
index e5362f17386..be22658d2e4 100644
--- a/src/mongo/executor/remote_command_request.cpp
+++ b/src/mongo/executor/remote_command_request.cpp
@@ -46,8 +46,8 @@ AtomicUInt64 requestIdCounter(0);
} // namespace
-const Milliseconds RemoteCommandRequest::kNoTimeout{-1};
-const Date_t RemoteCommandRequest::kNoExpirationDate{Date_t::max()};
+constexpr Milliseconds RemoteCommandRequest::kNoTimeout;
+constexpr Date_t RemoteCommandRequest::kNoExpirationDate;
RemoteCommandRequest::RemoteCommandRequest() : id(requestIdCounter.addAndFetch(1)) {}
diff --git a/src/mongo/executor/remote_command_request.h b/src/mongo/executor/remote_command_request.h
index e2e16b95261..c6195311b69 100644
--- a/src/mongo/executor/remote_command_request.h
+++ b/src/mongo/executor/remote_command_request.h
@@ -45,10 +45,10 @@ namespace executor {
*/
struct RemoteCommandRequest {
// Indicates that there is no timeout for the request to complete
- static const Milliseconds kNoTimeout;
+ static constexpr Milliseconds kNoTimeout{-1};
// Indicates that there is no expiration time by when the request needs to complete
- static const Date_t kNoExpirationDate;
+ static constexpr Date_t kNoExpirationDate{Date_t::max()};
// Type to represent the internal id of this request
typedef uint64_t RequestId;