File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ sleep(10000);
9191
9292
9393print ( "Add them back as slaves" ) ;
94+ config . members . push ( { _id :1 , host : host + ":" + replTest . getPort ( 1 ) } ) ;
95+ config . members . push ( { _id :2 , host : host + ":" + replTest . getPort ( 2 ) } ) ;
96+ config . version = 4 ;
9497wait ( function ( ) {
95- config . members . push ( { _id :1 , host : host + ":" + replTest . getPort ( 1 ) } ) ;
96- config . members . push ( { _id :2 , host : host + ":" + replTest . getPort ( 2 ) } ) ;
97- config . version = 4 ;
9898 try {
9999 master . getDB ( "admin" ) . runCommand ( { replSetReconfig :config } ) ;
100100 }
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ doTest = function (signal) {
203203
204204 count ++ ;
205205 if ( count == 100 ) {
206- print ( dbs [ 0 ] . getSisterDB ( "admin" ) . runCommand ( { replSetGetStatus :1 } ) ) ;
206+ printjson ( dbs [ 0 ] . isMaster ( ) ) ;
207+ printjson ( dbs [ 0 ] . adminCommand ( { replSetGetStatus :1 } ) ) ;
208+ printjson ( dbs [ 1 ] . isMaster ( ) ) ;
209+ printjson ( dbs [ 1 ] . adminCommand ( { replSetGetStatus :1 } ) ) ;
207210 pause ( "FAIL part 11" ) ;
208211 assert ( false , "replsets/\nsync1.js fails timing out" ) ;
209212 replTest . stopSet ( signal ) ;
You can’t perform that action at this time.
0 commit comments