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
429ca9a8
Commit
429ca9a8
authored
Sep 18, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
4bf08798
df24f846
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/suite/innodb/t/log_data_file_size.test
mysql-test/suite/innodb/t/log_data_file_size.test
+16
-2
sql/wsrep_hton.cc
sql/wsrep_hton.cc
+1
-0
No files found.
mysql-test/suite/innodb/t/log_data_file_size.test
View file @
429ca9a8
...
...
@@ -23,13 +23,13 @@ use Fcntl 'SEEK_CUR', 'SEEK_END';
my
$page_size
=
$ENV
{
'INNODB_PAGE_SIZE'
};
my
$restart
;
open
(
FILE
,
"+<"
,
"
$ENV
{
'MYSQLD_DATADIR'
}
ibdata1"
)
or
die
;
if
(
$ENV
{
'MYSQLD_IS_DEBUG'
})
{
# It is impractical to ensure that CREATE TABLE t will extend ibdata1.
# We rely on innodb_system_tablespace_extend_debug=1
# to recover from this fault injection if no size change was redo-logged.
my
$root
=
$ENV
{
'INNODB_ROOT_PAGE'
};
open
(
FILE
,
"+<"
,
"
$ENV
{
'MYSQLD_DATADIR'
}
ibdata1"
)
or
die
;
my
$size
=
sysseek
(
FILE
,
0
,
SEEK_END
)
/
$page_size
;
seek
(
FILE
,
$page_size
*
(
$root
+
1
),
SEEK_SET
)
or
die
;
my
$empty_tail
=
1
;
...
...
@@ -39,8 +39,22 @@ if ($ENV{'MYSQLD_IS_DEBUG'})
$restart
=
"--innodb-data-file-size-debug=
$size
"
;
truncate
(
FILE
,
$page_size
*
$root
);
}
close
FILE
;
}
# Clear the doublewrite buffer entries for our tables.
sysseek
(
FILE
,
6
*
$page_size
-
190
,
0
)
||
die
"Unable to seek ibdata1
\n
"
;
sysread
(
FILE
,
$_
,
12
)
==
12
||
die
"Unable to read TRX_SYS
\n
"
;
my
(
$magic
,
$d1
,
$d2
)
=
unpack
"NNN"
,
$_
;
die
"magic=
$magic
,
$d1
,
$d2
\n
"
unless
$magic
==
536853855
&&
$d2
>=
$d1
+
64
;
sysseek
(
FILE
,
$d1
*
$page_size
,
0
)
||
die
"Unable to seek ibdata1
\n
"
;
# Find the pages in the doublewrite buffer
for
(
my
$d
=
$d1
;
$d
<
$d2
+
64
;
$d
++
)
{
sysread
(
FILE
,
$_
,
$page_size
)
==
$page_size
||
die
"Cannot read doublewrite
\n
"
;
my
(
$space_id
,
$offset
)
=
unpack
"x[4]Nx[26]N"
,
$_
;
next
unless
$space_id
&&
$offset
>
3
;
sysseek
(
FILE
,
$d
*
$page_size
,
0
)
||
die
"Unable to seek ibdata1
\n
"
;
syswrite
(
FILE
,
chr
(
0
)
x
$page_size
)
==
$page_size
||
die
;
}
close
FILE
;
open
(
FILE
,
">
$ENV
{
MYSQLTEST_VARDIR
}
/log/start_mysqld.txt"
)
||
die
;
print
FILE
"--let
\$
restart_parameters=
$restart
\n
"
if
$restart
;
print
FILE
"--source include/start_mysqld.inc
\n
"
;
...
...
sql/wsrep_hton.cc
View file @
429ca9a8
...
...
@@ -538,6 +538,7 @@ wsrep_run_wsrep_commit(THD *thd, bool all)
break
;
case
WSREP_BF_ABORT
:
DBUG_ASSERT
(
thd
->
wsrep_trx_meta
.
gtid
.
seqno
!=
WSREP_SEQNO_UNDEFINED
);
/* fall through */
case
WSREP_TRX_FAIL
:
WSREP_DEBUG
(
"commit failed for reason: %d"
,
rcode
);
DBUG_PRINT
(
"wsrep"
,
(
"replicating commit fail"
));
...
...
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