[SERVER-31948] remove CollectionImpl::informIndexObserver() mutex Created: 13/Nov/17  Updated: 30/Oct/23  Resolved: 14/Nov/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.6.0-rc4

Type: Task Priority: Major - P3
Reporter: Eric Milkie Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Sprint: Storage 2017-11-13
Participants:

 Description   

This is currently unused, but the mutex is still being locked in a hot code path for index updates.



 Comments   
Comment by Githook User [ 14/Nov/17 ]

Author:

{'name': 'Daniel Gottlieb', 'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-31948: Do not lock the `_indexObserverMutex` on the `informIndexObserver` code path.

IndexObservers were part of the background collection/index consistency validation, but
the feature did not make it in for 3.6. IndexObservers currently cannot be installed, so
we'll gain some perf by not locking the mutex for what is otherwise a no-op.
Branch: master
https://github.com/mongodb/mongo/commit/9dfa7ab336623d435c9aa5d7192973706a047294

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