@@ -713,12 +713,11 @@ If you receive the following error:
713713Then the value for the ``ts`` field in the last oplog entry might be of
714714the wrong data type. The correct data type is Timestamp.
715715
716- You can check the data type by running the following two queries. If the
716+ You can check the data type by running the following two queries against the oplog . If the
717717data type is correct, the queries return the same document; if
718718incorrect, they return different documents.
719719
720- First run a query to return the last document in the oplog, no matter
721- its data type:
720+ First run a query to return the last document in the oplog:
722721
723722.. code-block:: javascript
724723
@@ -732,13 +731,16 @@ for type ``17``, which is the Timestamp data type.
732731
733732 db.oplog.rs.find({ts:{$type:17}}).sort({$natural:-1}).limit(1)
734733
734+ If the queries don't return the same document, then the last document in
735+ the oplog has the wrong data type in the ``ts`` field.
736+
735737.. example::
736738
737739 As an example, if the first query returns this as the last oplog entry:
738740
739741 .. code-block:: javascript
740742
741- { "h" : NumberLong("8191276672478122996"), "ns" : "", "o" : { "msg" : "Reconfig set", "version" : 4 }, "op" : "n", "ts" : true }
743+ { "ts" : {t: 1347982456000, i: 1}, " h" : NumberLong("8191276672478122996"), "op" : "n", " ns" : "", "o" : { "msg" : "Reconfig set", "version" : 4 } }
742744
743745 And the second query returns this as the last entry where ``ts`` is a Timestamp:
744746
@@ -755,4 +757,4 @@ time to pull the oplog into memory:
755757
756758.. code-block:: javascript
757759
758- db.oplog.rs.update({ts:{t:1234567891000 ,i:1234 }}, {$set:{ts:new Timestamp(1234567891000, 1234 )}})
760+ db.oplog.rs.update({ts:{t:1347982456000 ,i:1 }}, {$set:{ts:new Timestamp(1347982456000, 1 )}})
0 commit comments