0
0
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:
Aaron 2009-03-30 11:16:41 -04:00
parent 34e89bfef9
commit 40eab1308e

View File

@ -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 );