Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored December 06, 2011
4  db/client.cpp
@@ -336,7 +336,9 @@ namespace mongo {
336 336
     }
337 337
     
338 338
     void Client::Context::checkNsAccess( bool doauth, int lockState ) {
339  
-        uassert( 15929, "client access to index backing namespace prohibited", NamespaceString::normal( _ns.c_str() ) );
  339
+        if ( 0 ) { // SERVER-4276
  340
+            uassert( 15929, "client access to index backing namespace prohibited", NamespaceString::normal( _ns.c_str() ) );
  341
+        }
340 342
         if ( doauth ) {
341 343
             _auth( lockState );
342 344
         }
4  jstests/indexx.js
... ...
@@ -1,5 +1,7 @@
1 1
 // Test that client cannot access index namespaces SERVER-4276.
2 2
 
  3
+if ( 0 ) { // SERVER-4276
  4
+
3 5
 t = db.jstests_indexx;
4 6
 t.drop();
5 7
 
@@ -37,3 +39,5 @@ checkFailingOperations();
37 39
 t.save({});
38 40
 // Check with base collection present.
39 41
 checkFailingOperations();
  42
+
  43
+}

0 notes on commit a70fbc3

Please sign in to comment.
Something went wrong with that request. Please try again.