summaryrefslogtreecommitdiff
path: root/extra/mariabackup
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-05-29 06:19:46 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-05-29 06:32:40 +0200
commit5bd517259f2bb3e48cd3dab5fa64ce2cf9b623df (patch)
treeca3e8275addff85920677a7601036dfe0a9c5b88 /extra/mariabackup
parenta70a5537e7a048d2f555daee34e95ad3bda194ba (diff)
downloadmariadb-git-5bd517259f2bb3e48cd3dab5fa64ce2cf9b623df.tar.gz
MDEV-25815 mariabackup crash or debug assert with --backup --databases-exclude
Fix regression (debug assertion or division by 0) caused by cfd3d70ccbbfcf3fdec034be446317741dfae824
Diffstat (limited to 'extra/mariabackup')
-rw-r--r--extra/mariabackup/xtrabackup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index a663111208e..a82d371d40d 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -4048,7 +4048,7 @@ xb_register_filter_entry(
strncpy(dbname, name, p - name);
dbname[p - name] = 0;
- if (databases_hash) {
+ if (databases_hash && databases_hash->array) {
HASH_SEARCH(name_hash, databases_hash,
ut_fold_string(dbname),
xb_filter_entry_t*,