Skip to content

Commit 7dc52e2

Browse files
committed
ReplSetTest.stopmaster helper
1 parent 8d72a36 commit 7dc52e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shell/servers.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,11 @@ ReplSetTest.prototype.restart = function( n , options, signal, wait ){
17061706
return this.start( n , options , true, wait );
17071707
}
17081708

1709+
ReplSetTest.prototype.stopMaster = function( signal , wait ) {
1710+
var master = this.getMaster();
1711+
var master_id = this.getNodeId( master );
1712+
return this.stop( master_id , signal , wait );
1713+
}
17091714

17101715
// Stops a particular node or nodes, specified by conn or id
17111716
ReplSetTest.prototype.stop = function( n , signal, wait /* wait for stop */ ){

0 commit comments

Comments
 (0)