diff options
author | Dwight <dwight@10gen.com> | 2011-12-19 15:20:05 -0500 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2011-12-19 15:21:11 -0500 |
commit | 9e96a4a1a16c2ab4a4d8a64a2f2ac1a45bbd379c (patch) | |
tree | 1425ce7e65ab5c9d7d01c727d1647ee832a52b46 /s/d_migrate.cpp | |
parent | 32f6e84c12607686ef228adfeddd5cdc1e17726e (diff) | |
download | mongo-9e96a4a1a16c2ab4a4d8a64a2f2ac1a45bbd379c.tar.gz |
begin the process of putting global vairables in one central location. in particular, d_globals.h for mongod.
this surfaced some things such as references to dbMutex from things that don't actually use it, which resulted
in more changes to clean those up
Diffstat (limited to 's/d_migrate.cpp')
-rw-r--r-- | s/d_migrate.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp index ac4e3a77d5c..5e62661ec7e 100644 --- a/s/d_migrate.cpp +++ b/s/d_migrate.cpp @@ -515,7 +515,7 @@ namespace mongo { } void aboutToDelete( const Database* db , const DiskLoc& dl ) { - dbMutex.assertWriteLocked(); + d.dbMutex.assertWriteLocked(); if ( ! _getActive() ) return; @@ -603,7 +603,7 @@ namespace mongo { int loops = 0; Timer t; while ( t.seconds() < 900 ) { // 15 minutes - assert( dbMutex.getState() == 0 ); + assert( d.dbMutex.getState() == 0 ); sleepmillis( 20 ); set<CursorId> now; @@ -911,7 +911,7 @@ namespace mongo { // 4. for ( int i=0; i<86400; i++ ) { // don't want a single chunk move to take more than a day - assert( dbMutex.getState() == 0 ); + assert( d.dbMutex.getState() == 0 ); sleepsecs( 1 ); ScopedDbConnection conn( to ); BSONObj res; |