mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
Fix killOp to actually work with sharding SERVER-4251
This commit is contained in:
parent
9ace10e5f8
commit
58dcee3a00
@ -222,7 +222,7 @@ namespace mongo {
|
||||
}
|
||||
else if ( strcmp( ns , "killop" ) == 0 ) {
|
||||
BSONElement e = q.query["op"];
|
||||
if ( strstr( r.getns() , "admin." ) != 0 ) {
|
||||
if ( strstr( r.getns() , "admin." ) == 0 ) {
|
||||
b.append( "err" , "unauthorized" );
|
||||
}
|
||||
else if ( e.type() != String ) {
|
||||
|
Loading…
Reference in New Issue
Block a user