-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.4.4
-
Component/s: None
-
None
-
ALL
> db.contacts.update(
{"profile-id" : "test"}, {$set: {"actual.0020000000000000000000": "val5"}})
> db.contacts.find(
)
{ "_id" : ObjectId("4c2db755f6ec25d0c44c466a"), "actual" :
, "profile-id" : "test" }
> db.contacts.update(
{"profile-id" : "test"}, {$set: {"actual.0030000000000000000000": "val6"}})
> db.contacts.find(
)
{ "_id" : ObjectId("4c2db755f6ec25d0c44c466a"), "actual" :
, "profile-id" : "test" }
--------------
All working right, except last operation. As you see at last step key
"0020000000000000000000" was removed, and was replaced by
"0030000000000000000000".
- related to
-
SERVER-1782 Data loss after $set
- Closed