Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12302

Breaking Change: Timestamp(0,0) now replaced on insert

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.4.8
    • Component/s: None

      > db.test.drop()
      true
      > db.test.insert({ "NumberInt" : NumberInt(0), "Timestamp" : Timestamp(0, 0) })
      > db.test.insert({ "Timestamp" : Timestamp(0, 0) })
      > db.test.find()
      { "_id" : ObjectId("52cdf6870449e37d1e934214"), "NumberInt" : 0, "Timestamp" : Timestamp(0, 0) }
      { "_id" : ObjectId("52cdf6890449e37d1e934215"), "Timestamp" : Timestamp(1389229705, 1) }
      >
      

      This causes things like the Timestamp not round tripping correctly doing a dump restore from 2.4 to 2.5 (this bug does not exist in 2.5)

            Assignee:
            Unassigned Unassigned
            Reporter:
            sverch Shaun Verch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: