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

Fix crash in brave_ads migration #4558

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Conversation

jonathanKingston
Copy link
Contributor

@jonathanKingston jonathanKingston commented Feb 7, 2020

Fixes brave/brave-browser#8132

Submitter Checklist:

Test Plan:

Upgrade from 1.5.x to 1.6.8, and confirm DB: Error migrating database from v3 to v4 does not appear in the console logs

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

}

return false;
return GetDB().Execute(sql.c_str());
Copy link
Collaborator

@tmancey tmancey Feb 7, 2020

Choose a reason for hiding this comment

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

Great work, thank you.

The issue also exists for v1 to v2 so for this PR could you also resolve BundleStateDatabase::MigrateV1toV2 as the final return false; should also be return true;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I guess I stated at a later migration in the first place to not hit that one. Perhaps that's related to the other crash reports I see in the tracker.

@tmancey tmancey added this to the 1.6.x - Nightly milestone Feb 7, 2020
@tmancey tmancey self-requested a review February 7, 2020 23:35
Copy link
Collaborator

@tmancey tmancey left a comment

Choose a reason for hiding this comment

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

LGTM++

@tmancey
Copy link
Collaborator

tmancey commented Feb 7, 2020

@jonathanKingston great work and thank you for taking the time to resolve this issue. As soon as CI passes I will merge to master, keep up the great work!

@jonathanKingston
Copy link
Contributor Author

@tmancey thanks, I was about to ask what the merge process was :)

@tmancey tmancey merged commit 7847b34 into brave:master Feb 7, 2020
@tmancey tmancey self-assigned this Feb 7, 2020
@tmancey
Copy link
Collaborator

tmancey commented Feb 7, 2020

@jonathanKingston CI passed and merged with master. Once again thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in latest master build
3 participants