summaryrefslogtreecommitdiff
path: root/extra/mariabackup/wsrep.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extra/mariabackup/wsrep.cc')
-rw-r--r--extra/mariabackup/wsrep.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/extra/mariabackup/wsrep.cc b/extra/mariabackup/wsrep.cc
index c3ad1b53a21..6b57dd4e712 100644
--- a/extra/mariabackup/wsrep.cc
+++ b/extra/mariabackup/wsrep.cc
@@ -92,7 +92,7 @@ xb_write_galera_info(bool incremental_prepare)
fp = fopen(XB_GALERA_INFO_FILENAME, "w");
if (fp == NULL) {
- msg("mariabackup: error: "
+ die(
"could not create " XB_GALERA_INFO_FILENAME
", errno = %d\n",
errno);
@@ -106,11 +106,10 @@ xb_write_galera_info(bool incremental_prepare)
if (fprintf(fp, "%s:%lld", uuid_str, (long long) seqno) < 0) {
- msg("mariabackup: error: "
+ die(
"could not write to " XB_GALERA_INFO_FILENAME
", errno = %d\n",
- errno);
- exit(EXIT_FAILURE);
+ errno);;
}
fclose(fp);