This commit is contained in:
Dwight
2011-11-17 10:54:42 -05:00
parent b9764b74b8
commit a62ab9a7f4
2 changed files with 15 additions and 1 deletions

View File

@@ -9,9 +9,23 @@ using namespace std;
namespace mongo {
#if defined(CLC)
static void dbLock(Client& c) {
Client::LockStatus& s = c.lockStatus;
if( s.db++ == 0 ) { // i.e. allow recursive
}
}
LockCollectionForReading::LockCollectionForReading(const char *ns)
{
Client& c = cc();
lockDb(c);
//...
}
#endif
}

View File

@@ -130,7 +130,7 @@ namespace mongo {
CCByLoc ccByLoc;
int magic; // used for making sure the object is still loaded in memory
RWLockBase dbLock; // d_concurrency.h
RWLockBase dbLock; // see d_concurrency.h
};
} // namespace mongo