Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Gh#6056 long startup #6164

Merged
merged 2 commits into from
Oct 26, 2018
Merged

Gh#6056 long startup #6164

merged 2 commits into from
Oct 26, 2018

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Oct 26, 2018

Change Description

As documented by #6056 some people are seeing slow startup. This is caused by calculate_integrity_hash() taking a long time to run.

Only call the startup calculate_integrity_hash when starting from a snapshot to avoid delay.

@@ -386,7 +386,10 @@ struct controller_impl {
db.undo();
}

ilog( "database initialized with hash: ${hash}", ("hash", calculate_integrity_hash()));
if( snapshot ) {
const auto hash = calculate_integrity_hash();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there side-effects in calculate_integrity_hash that we want to occur even if the information logging is not turned on?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Should have no side-effects.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, just read Bart's telegram and I see why we want to do this outside the ilog.

@heifner heifner merged commit f016bdd into release/1.4.x Oct 26, 2018
@heifner heifner deleted the gh#6056-long-startup branch October 26, 2018 18:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants