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:
parent
efa0e8ab41
commit
39f598c605
@ -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" ) );
|
||||
|
Loading…
Reference in New Issue
Block a user