diff options
author | Benety Goh <benety@mongodb.com> | 2014-01-22 15:10:11 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-01-24 11:26:47 -0500 |
commit | 2200ec891db98519701ba7192f42a644a405652e (patch) | |
tree | a26ba29e31dddbb10ec7dcbf4848e9bd1dff486d /src/mongo/db/jsobj.cpp | |
parent | c42f5d873c0a0b6622f04b9b4d0235e6f0ec5f9c (diff) | |
download | mongo-2200ec891db98519701ba7192f42a644a405652e.tar.gz |
SERVER-12426 updated max BSON timestamp to depend on OpTime::max() which is defined as max(int32_t) seconds since epoch.
Diffstat (limited to 'src/mongo/db/jsobj.cpp')
-rw-r--r-- | src/mongo/db/jsobj.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/jsobj.cpp b/src/mongo/db/jsobj.cpp index 1378a9513a8..73ef893f525 100644 --- a/src/mongo/db/jsobj.cpp +++ b/src/mongo/db/jsobj.cpp @@ -1283,7 +1283,7 @@ namespace mongo { case Date: appendDate( fieldName , numeric_limits<long long>::max() ); return; case Timestamp: // TODO integrate with Date SERVER-3304 - appendTimestamp( fieldName , numeric_limits<unsigned long long>::max() ); return; + append( fieldName , OpTime::max() ); return; case Undefined: // shared with EOO appendUndefined( fieldName ); return; |