Permalink
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...
1 parent 064f396 commit a70fbc392c3cc261d9e8c73bfa5cab6a321bf89e @astaple astaple committed Dec 6, 2011
Showing with 7 additions and 1 deletion.
  1. +3 −1 db/client.cpp
  2. +4 −0 jstests/indexx.js
View
@@ -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
@@ -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();
+
+}

0 comments on commit a70fbc3

Please sign in to comment.