Skip to content

Commit

Permalink
removed noderole = 'wait_primary' from getPrimaryWorkers (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Navid2zp committed Jun 14, 2021
1 parent a1d00a6 commit 388f904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func GetCoordinators(dbname string) ([]*Node, error) {
func (d *database) getPrimaryWorkers() ([]*Worker, error) {
var workers []*Worker
err := d.db.Select(&workers,
`SELECT * from pg_dist_node where noderole = 'primary' or noderole = 'wait_primary';`)
`SELECT * from pg_dist_node where noderole = 'primary';`)
return workers, err
}

Expand Down

0 comments on commit 388f904

Please sign in to comment.