-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Blocker - P1
-
None
-
Affects Version/s: 2.5
-
Component/s: None
-
Labels:
-
Environment:Linux, mongo 2.4.1
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.