summaryrefslogtreecommitdiff
path: root/shell/servers.js
diff options
context:
space:
mode:
Diffstat (limited to 'shell/servers.js')
-rw-r--r--shell/servers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/servers.js b/shell/servers.js
index c8b70e1802c..2671600ea08 100644
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -1345,11 +1345,11 @@ ReplSetTest.prototype.stop = function( n , signal ){
return stopMongod( port , signal || 15 );
}
-ReplSetTest.prototype.stopSet = function( signal ) {
+ReplSetTest.prototype.stopSet = function( signal , forRestart ) {
for(i=0; i < this.ports.length; i++) {
this.stop( i, signal );
}
- if ( this._alldbpaths ){
+ if ( ! forRestart && this._alldbpaths ){
for( i=0; i<this._alldbpaths.length; i++ ){
resetDbpath( this._alldbpaths[i] );
}