Skip to content

Commit

Permalink
Merge pull request #139 from bareos/dev/arogge/bareos-18.2/fix-631
Browse files Browse the repository at this point in the history
catalog: make "Exit On Fatal" work as expected
  • Loading branch information
franku committed Jan 31, 2019
1 parent 031c7c8 commit d8c0e6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/cats/mysql.cc
Expand Up @@ -439,7 +439,7 @@ bool BareosDbMysql::SqlQueryWithHandler(const char *query, DB_RESULT_HANDLER *Re
/*
* Any fatal error should result in the daemon exiting.
*/
Emsg0(M_FATAL, 0, "Fatal database error\n");
Emsg0(M_ERROR_TERM, 0, "Fatal database error\n");
}

if (try_reconnect_ && !transaction_) {
Expand Down Expand Up @@ -560,7 +560,7 @@ bool BareosDbMysql::SqlQueryWithoutHandler(const char *query, int flags)
/*
* Any fatal error should result in the daemon exiting.
*/
Emsg0(M_FATAL, 0, "Fatal database error\n");
Emsg0(M_ERROR_TERM, 0, "Fatal database error\n");
}

if (try_reconnect_ && !transaction_) {
Expand Down
2 changes: 1 addition & 1 deletion core/src/cats/postgresql.cc
Expand Up @@ -689,7 +689,7 @@ bool BareosDbPostgresql::SqlQueryWithoutHandler(const char *query, int flags)
/*
* Any fatal error should result in the daemon exiting.
*/
Emsg0(M_FATAL, 0, "Fatal database error\n");
Emsg0(M_ERROR_TERM, 0, "Fatal database error\n");
}

if (try_reconnect_ && !transaction_) {
Expand Down

0 comments on commit d8c0e6c

Please sign in to comment.