Skip to content

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfales authored and AMecea committed Jan 9, 2020
1 parent 453ee1c commit fc8b5fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sidecar/appclone.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import (
// master; bucket URL exists | The assumption is that this is the bootstrap case: the
// | very first mysql pod is being initialized.
// ------------------------------------------------------------------------------------
// No healthy replcias; no | If this is the first pod in the cluster, then allow it
// No healthy replicas; no | If this is the first pod in the cluster, then allow it
// master; no bucket URL | to initialize as an empty instance, otherwise, return an
// | error to allow k8s to kill and restart the pod.
// ------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions pkg/sidecar/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (cfg *Config) MysqlDSN() string {
)
}

// IsFirstPodInSet returns true if this pod has an ordinal of 0, meaning it is the first one in the set
func (cfg *Config) IsFirstPodInSet() bool {
ordinal := getOrdinalFromHostname(cfg.Hostname)
return ordinal == 0
Expand Down

0 comments on commit fc8b5fc

Please sign in to comment.