[SERVER-10717] New implementation of $push should log positional sets when possible Created: 09/Sep/13  Updated: 02/Aug/18  Resolved: 18/Sep/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Gregory McKeon (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-10595 Replicating many array operations is ... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The new implementation of $push does not log positional $sets for those cases where it is possible. Instead, it currently always logs the entire array. The mod should be updated to do positional sets in the oplog when doing so is known to be safe, including at least the cases for which the old implementation used positional sets.

Also do $addToSet as well.



 Comments   
Comment by auto [ 18/Sep/13 ]

Author:

{u'username': u'scotthernandez', u'name': u'Scott Hernandez', u'email': u'scotthernandez@gmail.com'}

Message: SERVER-10717: use positional set for array appending
Branch: master
https://github.com/mongodb/mongo/commit/ea83ad3103fef1664e9385d48537c4163344ce8a

Generated at Thu Feb 08 03:23:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.