prep
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user