Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #172 from lpabon/nopeer
Browse files Browse the repository at this point in the history
Do not probe in the other direction
  • Loading branch information
Luis Pabón committed Aug 31, 2015
2 parents dd2a70d + 3d4e230 commit 96a41ec
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions executors/sshexec/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ func (s *SshExecutor) PeerProbe(exec_host, newnode string) error {
return err
}

logger.Info("Probing: %v -> %v", newnode, exec_host)
// --- Now we need to probe in the other direction.
commands = []string{
fmt.Sprintf("sudo gluster peer probe %v", exec_host),
}
_, err = exec.ConnectAndExec(newnode+":22", commands, 5)
if err != nil {
return err
}

return nil
}

Expand All @@ -71,7 +61,7 @@ func (s *SshExecutor) PeerDetach(exec_host, detachnode string) error {
}
_, err := exec.ConnectAndExec(exec_host+":22", commands, 5)
if err != nil {
return err
logger.Err(err)
}
return nil
}

0 comments on commit 96a41ec

Please sign in to comment.