diff options
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index 08771bb7222..3b19b11762c 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -154,7 +154,7 @@ namespace mongo { */ class ReadContext : boost::noncopyable { public: - ReadContext(const std::string& ns, const std::string& path=dbpath, bool doauth=true ); + ReadContext(const std::string& ns, const std::string& path=dbpath); Context& ctx() { return *c.get(); } private: scoped_ptr<Lock::DBRead> lk; @@ -167,16 +167,16 @@ namespace mongo { class Context : boost::noncopyable { public: /** this is probably what you want */ - Context(const string& ns, const std::string& path=dbpath, bool doauth=true, bool doVersion=true ); + Context(const string& ns, const std::string& path=dbpath, bool doVersion=true); /** note: this does not call finishInit -- i.e., does not call shardVersionOk() for example. see also: reset(). */ - Context( const std::string& ns , Database * db, bool doauth=true ); + Context(const std::string& ns , Database * db); // used by ReadContext - Context(const string& path, const string& ns, Database *db, bool doauth); + Context(const string& path, const string& ns, Database *db); ~Context(); Client* getClient() const { return _client; } @@ -205,7 +205,7 @@ namespace mongo { private: friend class CurOp; - void _finishInit( bool doauth=true); + void _finishInit(); void checkNotStale() const; void checkNsAccess( bool doauth ); void checkNsAccess( bool doauth, int lockState ); @@ -222,7 +222,7 @@ namespace mongo { class WriteContext : boost::noncopyable { public: - WriteContext(const string& ns, const std::string& path=dbpath, bool doauth=true ); + WriteContext(const string& ns, const std::string& path=dbpath); Context& ctx() { return _c; } private: Lock::DBWrite _lk; |