[SERVER-27914] Verify canAcceptWritesForDatabase() is called while the caller holds the global lock Created: 03/Feb/17  Updated: 06/Dec/17  Resolved: 06/Mar/17

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

Type: Task Priority: Major - P3
Reporter: Siyuan Zhou Assignee: Matthew Russotto
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-27892 Clarify locking rules for _canAcceptN... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2017-03-06
Participants:

 Description   

The comment of canAcceptWritesForDatabase says:

* NOTE: This function can only be meaningfully called while the caller holds the global
* lock in some mode other than MODE_NONE.

We should pass OperationContext into the function and verify the synchronization rule is satisfied.



 Comments   
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: SERVER-27914 Verify canAcceptWritesForDatabase() is called while the caller holds the global lock

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

Comment by Matthew Russotto [ 06/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/befb3ab22daa1f6e0db54af4caa426cfca1b7cd2

(Sorry, had the wrong description for this one, including the ticket #)

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