diff options
author | Mathias Stearn <mathias@10gen.com> | 2010-07-02 19:53:56 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2010-07-02 19:53:56 -0400 |
commit | 1a593ad925831be7d415c8163babdc8db2bed0a1 (patch) | |
tree | 55e96f0d3c30cb49c19ab82e293b4b59b22b9983 /db/repl_block.cpp | |
parent | 982332f807c38a261f459b816bf06bb87366d16a (diff) | |
download | mongo-1a593ad925831be7d415c8163babdc8db2bed0a1.tar.gz |
fix scoping
Diffstat (limited to 'db/repl_block.cpp')
-rw-r--r-- | db/repl_block.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/repl_block.cpp b/db/repl_block.cpp index a705b659a06..08cd4c486b0 100644 --- a/db/repl_block.cpp +++ b/db/repl_block.cpp @@ -108,7 +108,9 @@ namespace mongo { void update( const BSONObj& rid , const string& host , const string& ns , OpTime last ){ scoped_lock mylk(_mutex); - DEV MongoFileAllowWrites allowWrites; +#ifdef _DEVEL + MongoFileAllowWrites allowWrites; +#endif Ident ident(rid,host,ns); Info& i = _slaves[ ident ]; |