mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 03:17:50 +00:00
Merge pull request #260 from tgruben/sync-start
delay start for non-coordinator
This commit is contained in:
commit
57b2f32fa1
1 changed files with 7 additions and 0 deletions
|
|
@ -145,6 +145,13 @@ func (m *Command) Start() (err error) {
|
|||
if err != nil {
|
||||
return errors.Wrap(err, "setting up server")
|
||||
}
|
||||
if !m.API.Node().IsCoordinator {
|
||||
// hack to give coordinator a head start
|
||||
// TODO https://github.com/molecula/pilosa/issues/266
|
||||
if len(m.Config.Gossip.Seeds) > 0 {
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
// SetupNetworking
|
||||
err = m.setupNetworking()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue