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
c8e63644
Commit
c8e63644
authored
Jan 04, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 10.1 into 10.2
parents
8dc77a72
21470de1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
storage/innobase/trx/trx0roll.cc
storage/innobase/trx/trx0roll.cc
+4
-3
storage/xtradb/trx/trx0roll.cc
storage/xtradb/trx/trx0roll.cc
+5
-4
No files found.
storage/innobase/trx/trx0roll.cc
View file @
c8e63644
/*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 201
7
, MariaDB Corporation.
Copyright (c) 2016, 201
8
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -808,7 +808,8 @@ trx_roll_must_shutdown()
mutex_enter
(
&
recv_sys
->
mutex
);
if
(
recv_sys
->
report
(
time
))
{
ulint
n_trx
=
0
,
n_rows
=
0
;
ulint
n_trx
=
0
;
ulonglong
n_rows
=
0
;
for
(
const
trx_t
*
t
=
UT_LIST_GET_FIRST
(
trx_sys
->
rw_trx_list
);
t
!=
NULL
;
t
=
UT_LIST_GET_NEXT
(
trx_list
,
t
))
{
...
...
@@ -823,7 +824,7 @@ trx_roll_must_shutdown()
ib
::
info
()
<<
"To roll back: "
<<
n_trx
<<
" transactions, "
<<
n_rows
<<
" rows"
;
sd_notifyf
(
0
,
"STATUS=To roll back: "
ULINTPF
" transactions, "
ULINTPF
"
rows"
,
n_trx
,
n_rows
);
"%llu
rows"
,
n_trx
,
n_rows
);
}
mutex_exit
(
&
recv_sys
->
mutex
);
...
...
storage/xtradb/trx/trx0roll.cc
View file @
c8e63644
/*****************************************************************************
Copyright (c) 1996, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2016, 201
7
, MariaDB Corporation.
Copyright (c) 2016, 201
8
, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -751,7 +751,8 @@ trx_roll_must_shutdown()
mutex_enter
(
&
recv_sys
->
mutex
);
if
(
recv_sys
->
report
(
time
))
{
ulint
n_trx
=
0
,
n_rows
=
0
;
ulint
n_trx
=
0
;
ulonglong
n_rows
=
0
;
for
(
const
trx_t
*
t
=
UT_LIST_GET_FIRST
(
trx_sys
->
rw_trx_list
);
t
!=
NULL
;
t
=
UT_LIST_GET_NEXT
(
trx_list
,
t
))
{
...
...
@@ -765,9 +766,9 @@ trx_roll_must_shutdown()
}
ib_logf
(
IB_LOG_LEVEL_INFO
,
"To roll back: "
ULINTPF
" transactions, "
ULINTPF
"
rows"
,
n_trx
,
n_rows
);
"%llu
rows"
,
n_trx
,
n_rows
);
sd_notifyf
(
0
,
"STATUS=To roll back: "
ULINTPF
" transactions, "
ULINTPF
"
rows"
,
n_trx
,
n_rows
);
"%llu
rows"
,
n_trx
,
n_rows
);
}
mutex_exit
(
&
recv_sys
->
mutex
);
...
...
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