Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9678

Timestamp is not a signed 64-bit integer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • bsonspec
    • None

    Description

      The grammar in the BSON specification claims that the Timestamp type (0x11) is a signed 64-bit integer. In fact, a Timestamp is two unsigned 32-bit integers (time and increment, respectively), concatenated, effectively making Timestamp a 64-bit unsigned integer.

      This should be corrected on bsonspec.org.

      The MongoDB docs on Timestamp do not claim that timestamp is signed, so no change is needed: https://docs.mongodb.com/manual/reference/bson-types/

      Pull request: https://github.com/mongodb/bsonspec.org/pull/46

      Attachments

        Activity

          People

            Unassigned Unassigned
            luke.lovett Luke Lovett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 8 weeks ago