mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
Check read from slave guard
This commit is contained in:
parent
34e89bfef9
commit
40eab1308e
@ -51,6 +51,9 @@ doTest = function( signal ) {
|
||||
return ( lm == 0 && rm == 1 );
|
||||
} );
|
||||
|
||||
// Check that reading from slave fails
|
||||
assert.throws( l.getDB( baseName + "-temp" ).temp.find().count, {}, "not master" );
|
||||
|
||||
checkWrite( r, l );
|
||||
|
||||
stopMongod( 27020, signal );
|
||||
|
Loading…
Reference in New Issue
Block a user