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

Timestamp is not a signed 64-bit integer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: bsonspec
    • Labels:
      None

      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

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

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