[SERVER-50217] Change role graph/auth op observer to handle $v:2 delta updates Created: 10/Aug/20 Updated: 29/Oct/23 Resolved: 27/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Ian Boros | Assignee: | Ian Boros |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query 2020-08-24, Query 2020-09-07 |
| Participants: |
| Description |
|
When we start logging modifier-style updates using the $v:2 delta format, we'll need to update any code which parses or otherwise examines "update" oplog entries to handle both the $v:1 and $v:2 format. This includes the code which maintains the auth role graph, specifically here. At first glance this code simply re-applies the update to an in-memory version of the document. |
| Comments |
| Comment by Githook User [ 27/Aug/20 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}Message: This commit also removes an implicit constructor for write_ops::UpdateModification. |
| Comment by Githook User [ 27/Aug/20 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'puppyofkosh'}Message: |