diff options
author | William Schultz <william.schultz@mongodb.com> | 2020-03-04 16:03:47 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-04 21:51:37 +0000 |
commit | a2eeeedb3e358f9a71042a2ff752b67844d4dcf7 (patch) | |
tree | 01e97adb4242c5a57028cbf09ab38f3703dfeea8 /src/mongo/db/repl/optime.h | |
parent | 10e8964486fa1c5216d2f021dec09af1fbdefe86 (diff) | |
download | mongo-a2eeeedb3e358f9a71042a2ff752b67844d4dcf7.tar.gz |
SERVER-46571 Give initial replica set configs a term of -1
Diffstat (limited to 'src/mongo/db/repl/optime.h')
-rw-r--r-- | src/mongo/db/repl/optime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/optime.h b/src/mongo/db/repl/optime.h index 9d045da574e..9cead491d25 100644 --- a/src/mongo/db/repl/optime.h +++ b/src/mongo/db/repl/optime.h @@ -56,7 +56,7 @@ public: static const char kTermFieldName[]; // The term of an OpTime generated by old protocol version. - static const long long kUninitializedTerm = -1; + static constexpr long long kUninitializedTerm = -1; // The initial term after the first time upgrading from protocol version 0. // |