Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c9db50b5
Commit
c9db50b5
authored
Jan 03, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.4 into 10.5
parents
1df05a08
a48d2ec8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
1 deletion
+57
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-0
storage/spider/mysql-test/spider/bugfix/r/mdev_27184.result
storage/spider/mysql-test/spider/bugfix/r/mdev_27184.result
+21
-0
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.cnf
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.cnf
+2
-0
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.test
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.test
+31
-0
storage/spider/spd_db_mysql.cc
storage/spider/spd_db_mysql.cc
+1
-1
No files found.
sql/mysqld.cc
View file @
c9db50b5
...
@@ -8701,10 +8701,12 @@ void set_server_version(char *buf, size_t size)
...
@@ -8701,10 +8701,12 @@ void set_server_version(char *buf, size_t size)
{
{
bool
is_log
=
opt_log
||
global_system_variables
.
sql_log_slow
||
opt_bin_log
;
bool
is_log
=
opt_log
||
global_system_variables
.
sql_log_slow
||
opt_bin_log
;
bool
is_debug
=
IF_DBUG
(
!
strstr
(
MYSQL_SERVER_SUFFIX_STR
,
"-debug"
),
0
);
bool
is_debug
=
IF_DBUG
(
!
strstr
(
MYSQL_SERVER_SUFFIX_STR
,
"-debug"
),
0
);
bool
is_valgrind
=
IF_VALGRIND
(
!
strstr
(
MYSQL_SERVER_SUFFIX_STR
,
"-valgrind"
),
0
);
strxnmov
(
buf
,
size
-
1
,
strxnmov
(
buf
,
size
-
1
,
MYSQL_SERVER_VERSION
,
MYSQL_SERVER_VERSION
,
MYSQL_SERVER_SUFFIX_STR
,
MYSQL_SERVER_SUFFIX_STR
,
IF_EMBEDDED
(
"-embedded"
,
""
),
IF_EMBEDDED
(
"-embedded"
,
""
),
is_valgrind
?
"-valgrind"
:
""
,
is_debug
?
"-debug"
:
""
,
is_debug
?
"-debug"
:
""
,
is_log
?
"-log"
:
""
,
is_log
?
"-log"
:
""
,
NullS
);
NullS
);
...
...
storage/spider/mysql-test/spider/bugfix/r/mdev_27184.result
0 → 100644
View file @
c9db50b5
#
# MDEV-27184 Assertion `(old_top == initial_top (av) && old_size == 0) ||
# ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) &&
# ((unsigned long) old_end & (pagesize - 1)) == 0)' failed,
# Assertion `str.alloced_length() >= str.length() + data_len' failed
#
for master_1
for child2
for child3
connection master_1;
CREATE DATABASE auto_test_remote;
USE auto_test_remote;
CREATE TABLE tbl_a (a FLOAT) ENGINE=SPIDER;
INSERT INTO tbl_a VALUES
(0xF5A7),(0xF5A8),(0xF5A9),(0xF5AA),(0xF5AB),(0xF5AC),(0xF5AD),(0xF5AE),
(0xF5A7),(0xF5A8),(0xF5A9),(0xF5AA),(0xF5AB),(0xF5AC),(0xF5AD),(0xF5AE);
ERROR HY000: Unable to connect to foreign data source: localhost
DROP DATABASE auto_test_remote;
for master_1
for child2
for child3
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.cnf
0 → 100644
View file @
c9db50b5
!include include/default_mysqld.cnf
!include ../my_1_1.cnf
storage/spider/mysql-test/spider/bugfix/t/mdev_27184.test
0 → 100644
View file @
c9db50b5
--
echo
#
--
echo
# MDEV-27184 Assertion `(old_top == initial_top (av) && old_size == 0) ||
--
echo
# ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) &&
--
echo
# ((unsigned long) old_end & (pagesize - 1)) == 0)' failed,
--
echo
# Assertion `str.alloced_length() >= str.length() + data_len' failed
--
echo
#
--
disable_query_log
--
disable_result_log
--
source
../../
t
/
test_init
.
inc
--
enable_result_log
--
enable_query_log
--
connection
master_1
CREATE
DATABASE
auto_test_remote
;
USE
auto_test_remote
;
CREATE
TABLE
tbl_a
(
a
FLOAT
)
ENGINE
=
SPIDER
;
--
error
ER_CONNECT_TO_FOREIGN_DATA_SOURCE
INSERT
INTO
tbl_a
VALUES
(
0xF5A7
),(
0xF5A8
),(
0xF5A9
),(
0xF5AA
),(
0xF5AB
),(
0xF5AC
),(
0xF5AD
),(
0xF5AE
),
(
0xF5A7
),(
0xF5A8
),(
0xF5A9
),(
0xF5AA
),(
0xF5AB
),(
0xF5AC
),(
0xF5AD
),(
0xF5AE
);
DROP
DATABASE
auto_test_remote
;
--
disable_query_log
--
disable_result_log
--
source
../../
t
/
test_deinit
.
inc
--
enable_result_log
--
enable_query_log
storage/spider/spd_db_mysql.cc
View file @
c9db50b5
...
@@ -4384,7 +4384,7 @@ int spider_db_mariadb_util::append_column_value(
...
@@ -4384,7 +4384,7 @@ int spider_db_mariadb_util::append_column_value(
}
else
if
(
float_value
)
}
else
if
(
float_value
)
{
{
if
(
str
->
reserve
(
SPIDER_SQL_CAST_LEN
+
ptr
->
length
()
+
if
(
str
->
reserve
(
SPIDER_SQL_CAST_LEN
+
ptr
->
length
()
+
SPIDER_SQL_AS_FLOAT_LEN
,
SPIDER_SQL_CLOSE_PAREN_LEN
))
SPIDER_SQL_AS_FLOAT_LEN
+
SPIDER_SQL_CLOSE_PAREN_LEN
))
{
{
DBUG_RETURN
(
HA_ERR_OUT_OF_MEM
);
DBUG_RETURN
(
HA_ERR_OUT_OF_MEM
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment