diff options
Diffstat (limited to 'src/mongo/executor/remote_command_request.h')
-rw-r--r-- | src/mongo/executor/remote_command_request.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |