[SERVER-26965] Use RAII type for turning off replicated writes Created: 09/Nov/16  Updated: 06/Dec/17  Resolved: 13/Mar/17

Status: Closed
Project: Core Server
Component/s: Internal Code, Replication
Affects Version/s: None
Fix Version/s: 3.5.4

Type: Improvement Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Matthew Russotto
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-27740 Always use the RAII type of setReplic... Closed
Related
related to SERVER-28224 Make _writesAreReplicated a decoration Backlog
is related to SERVER-27147 Do not initial sync data written with... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-03-06, Repl 2017-03-27
Participants:

 Description   

Make OperationContext::setReplicatedWrites() private, and use RAII type everywhere to turn off replicated writes.



 Comments   
Comment by Ramon Fernandez Marina [ 24/Aug/17 ]

Author:

{'username': u'mtrussotto', 'name': u'Matthew Russotto', 'email': u'matthew.russotto@10gen.com'}

Message:SERVER-26965 Use RAII type for turning off replicated writes.
Branch:master
https://github.com/mongodb/mongo/commit/befb3ab22daa1f6e0db54af4caa426cfca1b7cd2

Comment by Githook User [ 13/Mar/17 ]

Author:

{u'username': u'mtrussotto', u'name': u'Matthew Russotto', u'email': u'matthew.russotto@10gen.com'}

Message: SERVER-26965 Use RAII type for turning off replicated writes
Branch: master
https://github.com/mongodb/mongo/commit/73f9e8b8a8422becf8694fe3d82c0e647dc71189

Comment by Githook User [ 06/Mar/17 ]

Author:

{u'username': u'mtrussotto', u'name': u'Matthew Russotto', u'email': u'matthew.russotto@10gen.com'}

Message: Revert "SERVER-26965 Use RAII type for turning off replicated writes."

This reverts commit befb3ab22daa1f6e0db54af4caa426cfca1b7cd2.
Branch: master
https://github.com/mongodb/mongo/commit/3e5314c3f2be49666ca5d7aa766c934ba7d6cbe9

Comment by Andy Schwerin [ 09/Nov/16 ]

While you're at it, maybe make the field a decoration.

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