0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix regression of pretouch slave repl

This commit is contained in:
dwight 2010-11-28 23:44:23 -05:00
parent 66f0e7c4b0
commit 631d98fede

View File

@ -398,7 +398,7 @@ namespace mongo {
void pretouchN(vector<BSONObj>& v, unsigned a, unsigned b) {
DEV assert( !dbMutex.isWriteLocked() );
Client *c = &cc();
Client *c = currentClient.get();
if( c == 0 ) {
Client::initThread("pretouchN");
c = &cc();