Skip to content

Commit 7e2b423

Browse files
committed
Merge 10.4 into 10.5
2 parents f5794e1 + 913efaa commit 7e2b423

38 files changed

+768
-603
lines changed

cmake/cpack_rpm.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ ELSEIF(RPM MATCHES "(rhel|centos)8")
240240
ALTERNATIVE_NAME("server" "mariadb-server-utils")
241241
ALTERNATIVE_NAME("shared" "mariadb-connector-c" ${MARIADB_CONNECTOR_C_VERSION}-1)
242242
ALTERNATIVE_NAME("shared" "mariadb-connector-c-config" ${MARIADB_CONNECTOR_C_VERSION}-1)
243+
ALTERNATIVE_NAME("devel" "mariadb-connector-c-devel" ${MARIADB_CONNECTOR_C_VERSION}-1)
243244
SETA(CPACK_RPM_client_PACKAGE_PROVIDES "mariadb-galera = 3:%{version}-%{release}")
244245
SETA(CPACK_RPM_common_PACKAGE_PROVIDES "mariadb-galera-common = 3:%{version}-%{release}")
245246
SETA(CPACK_RPM_common_PACKAGE_REQUIRES "MariaDB-shared")

extra/mariabackup/datasink.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
2323
#include "common.h"
2424
#include "datasink.h"
2525
#include "ds_compress.h"
26-
#include "ds_archive.h"
2726
#include "ds_xbstream.h"
2827
#include "ds_local.h"
2928
#include "ds_stdout.h"
@@ -45,13 +44,6 @@ ds_create(const char *root, ds_type_t type)
4544
case DS_TYPE_LOCAL:
4645
ds = &datasink_local;
4746
break;
48-
case DS_TYPE_ARCHIVE:
49-
#ifdef HAVE_LIBARCHIVE
50-
ds = &datasink_archive;
51-
#else
52-
die("mariabackup was built without libarchive support");
53-
#endif
54-
break;
5547
case DS_TYPE_XBSTREAM:
5648
ds = &datasink_xbstream;
5749
break;

extra/mariabackup/datasink.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ static inline int dummy_remove(const char *) {
6363
typedef enum {
6464
DS_TYPE_STDOUT,
6565
DS_TYPE_LOCAL,
66-
DS_TYPE_ARCHIVE,
6766
DS_TYPE_XBSTREAM,
6867
DS_TYPE_COMPRESS,
6968
DS_TYPE_ENCRYPT,

extra/mariabackup/ds_archive.cc

Lines changed: 0 additions & 282 deletions
This file was deleted.

extra/mariabackup/ds_archive.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

extra/mariabackup/ds_xbstream.cc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,20 @@ xbstream_open(ds_ctxt_t *ctxt, const char *path, MY_STAT *mystat)
126126
pthread_mutex_lock(&stream_ctxt->mutex);
127127
if (stream_ctxt->dest_file == NULL) {
128128
stream_ctxt->dest_file = ds_open(dest_ctxt, path, mystat);
129-
if (stream_ctxt->dest_file == NULL) {
130-
return NULL;
131-
}
132129
}
133130
pthread_mutex_unlock(&stream_ctxt->mutex);
131+
if (stream_ctxt->dest_file == NULL) {
132+
return NULL;
133+
}
134134

135135
file = (ds_file_t *) my_malloc(PSI_NOT_INSTRUMENTED,
136-
sizeof(ds_file_t) + sizeof(ds_stream_file_t), MYF(MY_FAE));
136+
sizeof(ds_file_t) +
137+
sizeof(ds_stream_file_t),
138+
MYF(MY_FAE));
139+
if (!file) {
140+
msg("my_malloc() failed.");
141+
goto err;
142+
}
137143
stream_file = (ds_stream_file_t *) (file + 1);
138144

139145
xbstream = stream_ctxt->xbstream;

0 commit comments

Comments
 (0)