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
57f827cd
Commit
57f827cd
authored
Dec 22, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-14741 Assertion '(trx)->start_file == 0' failed
in row_truncate_table_for_mysql()
parent
7f1777af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/suite/versioning/r/partition.result
mysql-test/suite/versioning/r/partition.result
+8
-0
mysql-test/suite/versioning/t/partition.test
mysql-test/suite/versioning/t/partition.test
+8
-0
sql/partition_info.cc
sql/partition_info.cc
+3
-0
No files found.
mysql-test/suite/versioning/r/partition.result
View file @
57f827cd
...
...
@@ -354,5 +354,13 @@ create or replace table t2 (f int);
create trigger tr before insert on t2
for each row select count(*) from t1 into @a;
insert into t2 values (1);
# MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
create or replace table t1 (i int) with system versioning
partition by system_time interval 1 hour (
partition p1 history,
partition pn current);
set autocommit= off;
truncate table t1;
set autocommit= on;
drop table t1;
drop table t2;
mysql-test/suite/versioning/t/partition.test
View file @
57f827cd
...
...
@@ -303,6 +303,14 @@ create trigger tr before insert on t2
for
each
row
select
count
(
*
)
from
t1
into
@
a
;
insert
into
t2
values
(
1
);
--
echo
# MDEV-14741 Assertion `(trx)->start_file == 0' failed in row_truncate_table_for_mysql()
create
or
replace
table
t1
(
i
int
)
with
system
versioning
partition
by
system_time
interval
1
hour
(
partition
p1
history
,
partition
pn
current
);
set
autocommit
=
off
;
truncate
table
t1
;
set
autocommit
=
on
;
drop
table
t1
;
drop
table
t2
;
...
...
sql/partition_info.cc
View file @
57f827cd
...
...
@@ -1072,7 +1072,10 @@ class Table_locker
thd
->
lock
=
saved_lock
;
thd
->
locked_tables_mode
=
saved_mode
;
if
(
locked
&&
!
thd
->
in_sub_stmt
)
{
ha_commit_trans
(
thd
,
false
);
ha_commit_trans
(
thd
,
true
);
}
}
};
...
...
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