allow changing notablescan at runtime via {set:} command

This commit is contained in:
Dwight
2010-10-15 17:00:34 -04:00
parent ad421070f5
commit 01a6722a25
5 changed files with 54 additions and 9 deletions

View File

@@ -32,7 +32,7 @@
namespace mongo {
void checkTableScanAllowed( const char * ns ){
if ( ! cmdLine.notablescan )
if ( ! cmdLine.noTableScan )
return;
if ( strstr( ns , ".system." ) ||
@@ -42,7 +42,7 @@ namespace mongo {
if ( ! nsdetails( ns ) )
return;
uassert( 10111 , (string)"table scans not allowed:" + ns , ! cmdLine.notablescan );
uassert( 10111 , (string)"table scans not allowed:" + ns , ! cmdLine.noTableScan );
}
double elementDirection( const BSONElement &e ) {