document not being created when update issued with $setOnInsert

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Blocker - P1
    • None
    • Affects Version/s: 2.5
    • Component/s: None
    • Environment:
      Linux, mongo 2.4.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      when issuing something like

      collection.update(
      {'pid': 1, 'site': u'5159d5ae05fae06c65de3c1f', 'vid': '5159d5e405fae06c8158e1d7', 'sid': u'1364842449086334'},
      
      {'$set': {'ip': u'22.219.220.161'}, '$setOnInsert': {'card': 0}, '$push': {'secs': 0, 'ev': u'Play', 'ts': 1364842449}}, upsert=True
      )
      

      no new document will appear in the collection, removing $setOnInsert will do.

            Assignee:
            Bernie Hackett
            Reporter:
            Esteban Feldman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: