summaryrefslogtreecommitdiff
path: root/src/mongo/db/jsobj.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2014-01-22 15:10:11 -0500
committerBenety Goh <benety@mongodb.com>2014-01-24 11:26:47 -0500
commit2200ec891db98519701ba7192f42a644a405652e (patch)
treea26ba29e31dddbb10ec7dcbf4848e9bd1dff486d /src/mongo/db/jsobj.cpp
parentc42f5d873c0a0b6622f04b9b4d0235e6f0ec5f9c (diff)
downloadmongo-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.cpp2
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;