summaryrefslogtreecommitdiff
path: root/shell/servers.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-29 16:55:16 -0400
committerAaron <aaron@10gen.com>2009-04-29 16:55:16 -0400
commit0e7abe0740bdd61b25eb11e03ef352e8b71b7fb0 (patch)
treee606682f6b737f5109bf0bbd8a60788ce3d2ff24 /shell/servers.js
parent408105e6eed952d9072a043a15e9e7203674df1e (diff)
downloadmongo-0e7abe0740bdd61b25eb11e03ef352e8b71b7fb0.tar.gz
add check for initial sync persistence
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 e3d4cbb46d1..b1aad45ced7 100644
--- a/shell/servers.js
+++ b/shell/servers.js
@@ -316,11 +316,11 @@ ReplPair.prototype.left = function() { return this.leftC_; }
ReplPair.prototype.killNode = function( mongo, signal ) {
signal = signal || 15;
- if ( this.leftC_.host == mongo.host ) {
+ if ( this.lectC_ != null && this.leftC_.host == mongo.host ) {
stopMongod( this.left_.port_ );
this.leftC_ = null;
}
- if ( this.rightC_.host == mongo.host ) {
+ if ( this.rightC_ != null && this.rightC_.host == mongo.host ) {
stopMongod( this.right_.port_ );
this.rightC_ = null;
}