Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add vlog printings every time we switch global state #1208

Merged
merged 1 commit into from May 13, 2023

Conversation

romange
Copy link
Collaborator

@romange romange commented May 13, 2023

Should help debugging #1204

@romange romange requested a review from dranikpg May 13, 2023 08:53
Comment on lines 326 to 339
ostream& operator<<(ostream& os, const dfly::GlobalState gs) {
switch (gs) {
case dfly::GlobalState::ACTIVE:
return os << "ACTIVE";
case dfly::GlobalState::LOADING:
return os << "LOADING";
case dfly::GlobalState::SAVING:
return os << "SAVING";
case dfly::GlobalState::SHUTTING_DOWN:
return os << "SHUTTING DOWN";
}

return os;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We already have GlobalStateName, its even in this file

dranikpg
dranikpg previously approved these changes May 13, 2023
Should help debugging #1204

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange merged commit c999072 into main May 13, 2023
6 checks passed
@romange romange deleted the AddStateLog branch May 13, 2023 11:24
romange added a commit that referenced this pull request Jun 1, 2023
Should help debugging #1204

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
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.

None yet

2 participants