1
0
mirror of https://github.com/gluster/glusterd2.git synced 2026-02-05 12:45:38 +01:00

Fix some misspells

Signed-off-by: Prashanth Pai <ppai@redhat.com>
This commit is contained in:
Prashanth Pai
2017-08-08 15:00:48 +05:30
parent 476f7de038
commit 3fbb4ef97d
5 changed files with 10 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ func addPeerHandler(w http.ResponseWriter, r *http.Request) {
restutils.SendHTTPError(w, http.StatusBadRequest, errors.ErrNoHostnamesPresent.Error())
return
}
log.WithField("addresses", req.Addresses).Debug("recieved request to add new peer with given addresses")
log.WithField("addresses", req.Addresses).Debug("received request to add new peer with given addresses")
p, _ := peer.GetPeerByAddrs(req.Addresses)
if p != nil {

View File

@@ -31,7 +31,7 @@ func deletePeerHandler(w http.ResponseWriter, r *http.Request) {
// - Send the Leave request
logger := log.WithField("peerid", id)
logger.Debug("recieved delete peer request")
logger.Debug("received delete peer request")
// Check whether the member exists
p, err := peer.GetPeerF(id)
@@ -40,14 +40,14 @@ func deletePeerHandler(w http.ResponseWriter, r *http.Request) {
restutils.SendHTTPError(w, http.StatusInternalServerError, "could not validate delete request")
return
} else if p == nil {
logger.Debug("request denied, recieved request to remove unknown peer")
logger.Debug("request denied, received request to remove unknown peer")
restutils.SendHTTPError(w, http.StatusNotFound, "peer not found in cluster")
return
}
// You cannot remove yourself
if id == gdctx.MyUUID.String() {
logger.Debug("request denied, recieved request to delete self from cluster")
logger.Debug("request denied, received request to delete self from cluster")
restutils.SendHTTPError(w, http.StatusBadRequest, "removing self is disallowed.")
return
}

View File

@@ -21,7 +21,7 @@ func init() {
errorStrings[ErrAnotherCluster] = "peer is part of another cluster"
errorStrings[ErrHaveVolumes] = "peer has existing volumes"
errorStrings[ErrStoreReconfigFailed] = "store reconfigure failed on peer"
errorStrings[ErrUnknownPeer] = "request recieved from unknown peer"
errorStrings[ErrUnknownPeer] = "request received from unknown peer"
}
func (e Error) String() string {

View File

@@ -34,7 +34,7 @@ func (p *PeerService) Join(ctx context.Context, req *JoinReq) (*JoinRsp, error)
// - TODO: Ensure no ongoing operations (transactions/other peer requests) are happening
// - TODO: Check is peer is part of another cluster
// - Check if the peer has volumes
// - Reconfigure the store with recieved configuration
// - Reconfigure the store with received configuration
// - Return your ID
// TODO: Ensure no other operations are happening
@@ -78,10 +78,10 @@ func (p *PeerService) Leave(ctx context.Context, req *LeaveReq) (*LeaveRsp, erro
logger.Info("could not verify peer")
return &LeaveRsp{int32(ErrUnknownPeer)}, nil
} else if p == nil {
logger.Info("rejecting leave, request recieved from unknown peer")
logger.Info("rejecting leave, request received from unknown peer")
return &LeaveRsp{int32(ErrUnknownPeer)}, nil
}
logger.Debug("request recieved from known peer")
logger.Debug("request received from known peer")
// TODO: Check if you can leave the cluster
// The peer sending the leave request should have done the check, but check
@@ -106,7 +106,7 @@ func ReconfigureStore(c *StoreConfig) error {
store.Destroy()
// TODO: Also need to destroy any old files in localstatedir (eg. volfiles)
// Restart the store with recieved configuration
// Restart the store with received configuration
cfg := store.GetConfig()
cfg.Endpoints = c.Endpoints

View File

@@ -196,7 +196,7 @@ func (ee *ElasticEtcd) nominate(host string, urls types.URLs) error {
// Add the new host to the nominees list.
// Wait a little for the nominee to pick up the nomination.
// Then add the new host as an etcd member.
// If we add the new host as a member first, the embeded etcd will begin
// If we add the new host as a member first, the embedded etcd will begin
// trying to connect to the newly added member and which causes new requests
// to be blocked, for example the PUT request to add the new nominee.
// If we don't wait for a little while before adding the nominee as a member,