mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
fix assertion SERVER-433
This commit is contained in:
parent
340f06ab24
commit
bed8ba812b
@ -370,8 +370,8 @@ int main(int argc, char **argv){
|
||||
} else if ( arg == string( "--forward" ) ) {
|
||||
forwardAddress = args[ ++i ];
|
||||
} else if ( arg == string( "--source" ) ) {
|
||||
assert( source == false );
|
||||
assert(args.size() > i + 2);
|
||||
uassert( "can't use --source twice" , source == false );
|
||||
uassert( "source needs more args" , args.size() > i + 2);
|
||||
source = true;
|
||||
replay = ( args[ ++i ] == string( "FILE" ) );
|
||||
if ( replay )
|
||||
|
Loading…
Reference in New Issue
Block a user