0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

features command shouldn't take a lock

This commit is contained in:
Mathias Stearn 2010-11-29 14:47:08 -05:00
parent efa0e8ab41
commit 39f598c605

View File

@ -194,7 +194,7 @@ namespace mongo {
void help(stringstream& h) const { h << "return build level feature settings"; }
virtual bool slaveOk() const { return true; }
virtual bool readOnly(){ return true; }
virtual LockType locktype() const { return READ; }
virtual LockType locktype() const { return NONE; }
virtual bool run(const string& ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl){
if ( globalScriptEngine ){
BSONObjBuilder bb( result.subobjStart( "js" ) );