|
Author:
{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}
Message: SERVER-4328 SERVER-5509 fix deadlock in runExclusively
A deadlock was seen in slowNightly/background.js.
The dur thread was blocked waiting on X's condvar.
Meanwhile, another thread had finished its work and
released its w lock (rather than calling runExclusively);
however, the code does not signal X's condvar for that case,
and thus the dur thread never woke up to notice that X.n
and w.n counts were the same.
Branch: master
https://github.com/mongodb/mongo/commit/b987d96067b24e4d1eb6dede4c204f2dc0db8f57
|