summaryrefslogtreecommitdiff
path: root/s/config.h
diff options
context:
space:
mode:
authorDwight Merriman <dwight@10gen.com>2010-05-26 00:46:49 -0400
committerDwight Merriman <dwight@10gen.com>2010-05-26 00:46:49 -0400
commita190583c5180cca0f937b969e9959a1cddc19c5c (patch)
treed2d4dba88b6ad622bd32828c5e37cdaac37574d2 /s/config.h
parenta6e5b141c2d0bfac88d22fdf9d3bafc85c95b523 (diff)
downloadmongo-a190583c5180cca0f937b969e9959a1cddc19c5c.tar.gz
MutexDebugger
Diffstat (limited to 's/config.h')
-rw-r--r--s/config.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/s/config.h b/s/config.h
index 1bcc5c1fb6e..6c3ae6ad5ae 100644
--- a/s/config.h
+++ b/s/config.h
@@ -63,7 +63,8 @@ namespace mongo {
*/
class DBConfig : public Model {
public:
- DBConfig( string name = "" ) : _name( name ) , _primary("config","") , _shardingEnabled(false){ }
+ DBConfig( string name = "" ) : _name( name ) , _primary("config","") ,
+ _shardingEnabled(false), _lock("DBConfig") { }
string getName(){ return _name; };
@@ -148,6 +149,8 @@ namespace mongo {
*/
class Grid {
public:
+ Grid() : _lock("Grid") { }
+
/**
gets the config the db.
will return an empty DBConfig if not in db already