mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +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 );
|
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 );
|
checkWrite( r, l );
|
||||||
|
|
||||||
stopMongod( 27020, signal );
|
stopMongod( 27020, signal );
|
||||||
|
Loading…
Reference in New Issue
Block a user