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
1ee0144d
Commit
1ee0144d
authored
Nov 21, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
ae2004c6
d07a6e33
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
23 deletions
+26
-23
mysql-test/include/have_aria_used_for_temp_tables.inc
mysql-test/include/have_aria_used_for_temp_tables.inc
+4
-0
mysql-test/main/information_schema.test
mysql-test/main/information_schema.test
+4
-0
mysql-test/main/invisible_field_debug.result
mysql-test/main/invisible_field_debug.result
+2
-0
mysql-test/main/invisible_field_debug.test
mysql-test/main/invisible_field_debug.test
+2
-0
mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
...est/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
+1
-0
mysql-test/suite/sys_vars/t/sysvars_aria.test
mysql-test/suite/sys_vars/t/sysvars_aria.test
+1
-0
mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
+2
-0
sql/item.cc
sql/item.cc
+5
-1
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+5
-22
No files found.
mysql-test/include/have_aria_used_for_temp_tables.inc
0 → 100644
View file @
1ee0144d
if
(
!
`SELECT @@aria_used_for_temp_tables`
)
{
skip
Need
Aria
to
be
used
for
temporary
tables
;
}
mysql-test/main/information_schema.test
View file @
1ee0144d
...
...
@@ -8,6 +8,10 @@
# on the presence of the log tables (which are CSV-based).
--
source
include
/
have_csv
.
inc
# Without aria_used_for_temp_tables some I_S tables will be MyISAM,
# while the test expects them to be Aria
--
source
include
/
have_aria_used_for_temp_tables
.
inc
--
source
include
/
have_innodb
.
inc
# Save the initial number of concurrent sessions
...
...
mysql-test/main/invisible_field_debug.result
View file @
1ee0144d
...
...
@@ -17,6 +17,8 @@ a invisible
1 9
insert into t1(a, invisible) values(99,99);
ERROR 42S22: Unknown column 'invisible' in 'field list'
select default(invisible) from t1;
ERROR 42S22: Unknown column 'invisible' in 'field list'
insert into t1(invisible) values(99);
ERROR 42S22: Unknown column 'invisible' in 'field list'
insert into t_tmp select a, invisible from t1;
...
...
mysql-test/main/invisible_field_debug.test
View file @
1ee0144d
...
...
@@ -13,6 +13,8 @@ select a , invisible from t1;
--
error
ER_BAD_FIELD_ERROR
insert
into
t1
(
a
,
invisible
)
values
(
99
,
99
);
--
error
ER_BAD_FIELD_ERROR
select
default
(
invisible
)
from
t1
;
--
error
ER_BAD_FIELD_ERROR
insert
into
t1
(
invisible
)
values
(
99
);
insert
into
t_tmp
select
a
,
invisible
from
t1
;
--
error
ER_WRONG_VALUE_COUNT_ON_ROW
...
...
mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
View file @
1ee0144d
# bool readonly
--
source
include
/
have_aria_used_for_temp_tables
.
inc
--
source
include
/
have_maria
.
inc
#
# show the global and session values;
...
...
mysql-test/suite/sys_vars/t/sysvars_aria.test
View file @
1ee0144d
--
source
include
/
have_aria
.
inc
--
source
include
/
have_aria_used_for_temp_tables
.
inc
--
source
include
/
word_size
.
inc
--
vertical_results
...
...
mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
View file @
1ee0144d
###################### tmp_memory_table_size_func.test ########################
--
source
include
/
have_aria_used_for_temp_tables
.
inc
--
source
include
/
load_sysvars
.
inc
--
source
include
/
have_sequence
.
inc
...
...
sql/item.cc
View file @
1ee0144d
...
...
@@ -9053,7 +9053,11 @@ bool Item_default_value::fix_fields(THD *thd, Item **items)
field value (mark column for read)
*/
enum_column_usage
save_column_usage
=
thd
->
column_usage
;
thd
->
column_usage
=
COLUMNS_READ
;
/*
Fields which has defult value could be read, so it is better hide system
invisible columns.
*/
thd
->
column_usage
=
COLUMNS_WRITE
;
if
(
arg
->
fix_fields_if_needed
(
thd
,
&
arg
))
{
thd
->
column_usage
=
save_column_usage
;
...
...
storage/innobase/log/log0recv.cc
View file @
1ee0144d
...
...
@@ -227,9 +227,8 @@ static void recv_addr_trim(ulint space_id, unsigned pages, lsn_t lsn)
hash_cell_t
*
const
cell
=
hash_get_nth_cell
(
recv_sys
->
addr_hash
,
i
);
for
(
recv_addr_t
*
addr
=
static_cast
<
recv_addr_t
*>
(
cell
->
node
),
*
prev
=
NULL
,
*
next
;
addr
;
prev
=
addr
,
addr
=
next
)
{
*
next
;
addr
;
addr
=
next
)
{
next
=
static_cast
<
recv_addr_t
*>
(
addr
->
addr_hash
);
if
(
addr
->
space
!=
space_id
||
addr
->
page_no
<
pages
)
{
...
...
@@ -251,22 +250,6 @@ static void recv_addr_trim(ulint space_id, unsigned pages, lsn_t lsn)
}
recv
=
n
;
}
if
(
UT_LIST_GET_LEN
(
addr
->
rec_list
))
{
DBUG_PRINT
(
"ib_log"
,
(
"preserving "
ULINTPF
" records for page %u:%u"
,
UT_LIST_GET_LEN
(
addr
->
rec_list
),
addr
->
space
,
addr
->
page_no
));
}
else
{
ut_ad
(
recv_sys
->
n_addrs
);
--
recv_sys
->
n_addrs
;
if
(
addr
==
cell
->
node
)
{
cell
->
node
=
next
;
}
else
{
prev
->
addr_hash
=
next
;
}
}
}
}
if
(
fil_space_t
*
space
=
fil_space_get
(
space_id
))
{
...
...
@@ -2022,8 +2005,7 @@ static ulint recv_read_in_area(const page_id_t page_id)
/** Apply the hash table of stored log records to persistent data pages.
@param[in] last_batch whether the change buffer merge will be
performed as part of the operation */
void
recv_apply_hashed_log_recs
(
bool
last_batch
)
void
recv_apply_hashed_log_recs
(
bool
last_batch
)
{
ut_ad
(
srv_operation
==
SRV_OPERATION_NORMAL
||
srv_operation
==
SRV_OPERATION_RESTORE
...
...
@@ -2088,7 +2070,8 @@ recv_apply_hashed_log_recs(bool last_batch)
recv_addr
=
static_cast
<
recv_addr_t
*>
(
HASH_GET_NEXT
(
addr_hash
,
recv_addr
)))
{
if
(
recv_addr
->
state
==
RECV_DISCARDED
)
{
if
(
recv_addr
->
state
==
RECV_DISCARDED
||
!
UT_LIST_GET_LEN
(
recv_addr
->
rec_list
))
{
ut_a
(
recv_sys
->
n_addrs
);
recv_sys
->
n_addrs
--
;
continue
;
...
...
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