-
Notifications
You must be signed in to change notification settings - Fork 259
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
core cats: Add IF EXISTS
in drop table statements
#1035
core cats: Add IF EXISTS
in drop table statements
#1035
Conversation
Question: shall we add a systemtest for checking parameter ExitOnFatal = yes ? |
|
if exists
in drop table statements
if exists
in drop table statementsIF EXISTS
in drop table statements
The test would have to run bareos-dir with ExitOnFatal = on to check we don't introduce a new error afterwards. But this is certainly too nitpicky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, makes sense. I have the following remarks:
-
The info which bug is fixed should not be part of the PR title but from the commit that fixes the bug:
See:
https://docs.bareos.org/DeveloperGuide/gitworkflow.html#commit-message-guideline -
Also, a CHANGELOG.md line is missing. There the fixed bug also should be referenced.
IF EXISTS
in drop table statementsIF EXISTS
in drop table statements
e1ac8fd
to
080d157
Compare
Everything should be now fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit should contain a line
Fixes #1409: DB error on restore with ExitOnFatal=true
This will automatically link the commit with the mantis bug.
Other than this everything is fine!
080d157
to
9c483bb
Compare
- Using if exists avoid return of fatal error from database Allow the use of parameter ExitOnFatal = true on normal workflow - Fixes bareos#1409: DB error on restore with ExitOnFatal=true Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
9c483bb
to
f3c94c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work
Allow the use of parameter ExitOnFatal = true on normal workflow
Signed-off-by: Bruno Friedmann bruno.friedmann@bareos.com
Thank you for contributing to the Bareos Project!
Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
General
Source code quality
bareos-check-sources --since-merge
does not report any problemsgit status
should not report modifications in the source tree after building and testing