Skip to content

server: create engines in NewServer#55277

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:eng-create-early
Oct 7, 2020
Merged

server: create engines in NewServer#55277
craig[bot] merged 1 commit intocockroachdb:masterfrom
tbg:eng-create-early

Conversation

@tbg
Copy link
Copy Markdown
Member

@tbg tbg commented Oct 7, 2020

We were jumping through a number of hoops to create the engines only in
(*Server).Start since that seems to be the "idiomatic" place to start
moving parts. However, it creates a lot of complexity since various
callbacks have to be registered with access to engines. Move engine
creation to NewServer.

This unblocks #54936.

Release note: None

We were jumping through a number of hoops to create the engines only in
`(*Server).Start` since that seems to be the "idiomatic" place to start
moving parts. However, it creates a lot of complexity since various
callbacks have to be registered with access to engines. Move engine
creation to `NewServer`.

This unblocks cockroachdb#54936.

Release note: None
@tbg tbg requested a review from irfansharif October 7, 2020 08:36
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@tbg
Copy link
Copy Markdown
Member Author

tbg commented Oct 7, 2020

bors r=irfansharif
🙇‍♂️

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 7, 2020

Build succeeded:

@craig craig bot merged commit 04bfabb into cockroachdb:master Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants