Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-4276 replication implementation specifies a client ns includin…

…g $cmd for commands, causing buildbot failure when combined with the new namespace guard; going to disable the 'normal' namespace client guard pending clarification of desired behavior in the jira (there are some preexisting questions about correct behavior)
  • Loading branch information...
commit a70fbc392c3cc261d9e8c73bfa5cab6a321bf89e 1 parent 064f396
@astaple astaple authored
Showing with 7 additions and 1 deletion.
  1. +3 −1 db/client.cpp
  2. +4 −0 jstests/indexx.js
View
4 db/client.cpp
@@ -336,7 +336,9 @@ namespace mongo {
}
void Client::Context::checkNsAccess( bool doauth, int lockState ) {
- uassert( 15929, "client access to index backing namespace prohibited", NamespaceString::normal( _ns.c_str() ) );
+ if ( 0 ) { // SERVER-4276
+ uassert( 15929, "client access to index backing namespace prohibited", NamespaceString::normal( _ns.c_str() ) );
+ }
if ( doauth ) {
_auth( lockState );
}
View
4 jstests/indexx.js
@@ -1,5 +1,7 @@
// Test that client cannot access index namespaces SERVER-4276.
+if ( 0 ) { // SERVER-4276
+
t = db.jstests_indexx;
t.drop();
@@ -37,3 +39,5 @@ checkFailingOperations();
t.save({});
// Check with base collection present.
checkFailingOperations();
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.