0
0
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:
Kristina 2011-11-11 14:06:10 -05:00
parent 9ace10e5f8
commit 58dcee3a00

View File

@ -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 ) {