[SERVER-3572] authenticate shouldn't use a write lock Created: 10/Aug/11  Updated: 11/Jul/16  Resolved: 26/Oct/11

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Improvement Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Participants:

 Description   

Otherwise you can't log in once fsync+locked.



 Comments   
Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Revert "build index in system.user on insert SERVER-3572"

This reverts commit 3733a988c5e7b68c61d08f21d0bd1eec84da66d2.

Currently only builds index if system.users already exists so doesn't work for
first user. Reverting since this is breaking buildbot.
Branch: master
https://github.com/mongodb/mongo/commit/541aa57d8fd4c8c1938daba0f004caa2076b2d08

Comment by Mathias Stearn [ 24/Oct/11 ]

Main change already in 2.0.0. Given that we stopped building the index then, might be worth backporting the change to build it at insert time

Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: build index in system.user on insert SERVER-3572
Branch: master
https://github.com/mongodb/mongo/commit/3733a988c5e7b68c61d08f21d0bd1eec84da66d2

Comment by Dwight Merriman [ 12/Aug/11 ]

mathias suggests 'adding logic to insert to create the index on any insert to system.users. We already have logic to check for
system.user so it should be easy to tack it in there'. So let's do that part in 2.1 will leave the ticket open for that.

Comment by Dwight Merriman [ 12/Aug/11 ]

ok fix attempted in 1.9.x

Comment by auto [ 12/Aug/11 ]

Author:

{u'login': u'dwight', u'name': u'dwight', u'email': u'dwight@10gen.com'}

Message: SERVER-3572 write lock for authenticate
Branch: master
https://github.com/mongodb/mongo/commit/f95d8d5594077358e7932a1781dad56f1dd7ad66

Comment by Nathan Ehresman [ 11/Aug/11 ]

What are the odds of this bug fix making it in to 2.0-rc0?

Generated at Thu Feb 08 03:03:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.