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:
parent
66f0e7c4b0
commit
631d98fede
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user