[SERVER-31012] expose optional way of retrieving FieldRef's for fields that were modified by an update Created: 08/Sep/17  Updated: 30/Oct/23  Resolved: 30/Nov/18

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 4.1.6

Type: Improvement Priority: Minor - P4
Reporter: Michael O'Brien Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-11-19, Query 2018-12-03, Query 2018-12-17
Participants:
Linked BF Score: 37

 Description   

In stitch, we rely on invoking UpdateDriver::update() to return a FieldRefSet indicating which fields were modified by the update operation. To make this possible, we're using a patched version of 3.5.8 here: https://github.com/mpobrien/mongo/commits/stitch-update-doc

In newer versions of the code, the modified fields are no longer available from update(). However, we'd ideally like to be to compiling against a more current version of mongo so that we get all the bug fixes and new update operators. If there was a way the modified fields could be exposed in some form in the current update code, it might make that possible for us.

cc tess.avitabile



 Comments   
Comment by Githook User [ 30/Nov/18 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-31012 Fix unittest compile on windows
Branch: master
https://github.com/mongodb/mongo/commit/7f43aa58c91a14573e5fa392e1c0c09795fa60ef

Comment by Githook User [ 30/Nov/18 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-31012: expose optional way of retrieving FieldRef's for fields that were modified by an update
Branch: master
https://github.com/mongodb/mongo/commit/c60c435ffd0bece5000d66cd5ada876717c89827

Comment by Ian Whalen (Inactive) [ 19/Jan/18 ]

assigning to Asya to discuss with Mike and Drew (DiPalma) about the relative importance here.

Comment by Ian Whalen (Inactive) [ 12/Sep/17 ]

Waiting on pasette to provide some insight into how to proceed.

Generated at Thu Feb 08 04:25:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.