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
669fd1d9
Commit
669fd1d9
authored
Oct 27, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IB: ulint compilation fixes
parent
1d9d3513
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
storage/innobase/include/trx0trx.h
storage/innobase/include/trx0trx.h
+9
-0
storage/innobase/trx/trx0purge.cc
storage/innobase/trx/trx0purge.cc
+1
-3
storage/innobase/trx/trx0trx.cc
storage/innobase/trx/trx0trx.cc
+3
-9
storage/innobase/vers/vers0vtq.cc
storage/innobase/vers/vers0vtq.cc
+1
-1
No files found.
storage/innobase/include/trx0trx.h
View file @
669fd1d9
...
...
@@ -1305,6 +1305,15 @@ struct trx_t {
return
(
assign_temp_rseg
());
}
void
init_start_time
()
{
ulint
secs
;
ulint
usecs
;
ut_usectime
(
&
secs
,
&
usecs
);
start_time
=
secs
;
start_time_micro
=
usecs
+
(
ib_uint64_t
)
secs
*
1000000
;
}
private:
/** Assign a rollback segment for modifying temporary tables.
@return the assigned rollback segment */
...
...
storage/innobase/trx/trx0purge.cc
View file @
669fd1d9
...
...
@@ -180,9 +180,7 @@ trx_purge_graph_build(sess_t* sess)
ut_ad
(
trx
->
sess
==
sess
);
trx
->
id
=
0
;
ut_usectime
((
ulong
*
)
&
trx
->
start_time
,
(
ulong
*
)
&
trx
->
start_time_micro
);
trx
->
start_time_micro
+=
trx
->
start_time
*
1000000
;
trx
->
init_start_time
();
trx
->
state
=
TRX_STATE_ACTIVE
;
trx
->
op_info
=
"purge trx"
;
...
...
storage/innobase/trx/trx0trx.cc
View file @
669fd1d9
...
...
@@ -869,9 +869,7 @@ trx_resurrect_insert(
if
(
trx
->
state
==
TRX_STATE_ACTIVE
||
trx
->
state
==
TRX_STATE_PREPARED
)
{
ut_usectime
((
ulong
*
)
&
trx
->
start_time
,
(
ulong
*
)
&
trx
->
start_time_micro
);
trx
->
start_time_micro
+=
trx
->
start_time
*
1000000
;
trx
->
init_start_time
();
}
if
(
undo
->
dict_operation
)
{
...
...
@@ -961,9 +959,7 @@ trx_resurrect_update(
start time here.*/
if
(
trx
->
state
==
TRX_STATE_ACTIVE
||
trx
->
state
==
TRX_STATE_PREPARED
)
{
ut_usectime
((
ulong
*
)
&
trx
->
start_time
,
(
ulong
*
)
&
trx
->
start_time_micro
);
trx
->
start_time_micro
+=
trx
->
start_time
*
1000000
;
trx
->
init_start_time
();
}
if
(
undo
->
dict_operation
)
{
...
...
@@ -1339,9 +1335,7 @@ trx_start_low(
trx
->
start_time
=
trx
->
start_time_micro
/
1000000
;
}
else
{
ut_usectime
((
ulong
*
)
&
trx
->
start_time
,
(
ulong
*
)
&
trx
->
start_time_micro
);
trx
->
start_time_micro
+=
trx
->
start_time
*
1000000
;
trx
->
init_start_time
();
}
ut_a
(
trx
->
error_state
==
DB_SUCCESS
);
...
...
storage/innobase/vers/vers0vtq.cc
View file @
669fd1d9
...
...
@@ -228,7 +228,7 @@ operator< (const timeval &a, const timeval &b)
static
trx_id_t
read_trx_id
(
const
rec_t
*
rec
)
{
ul
ong
len
=
0
;
ul
int
len
=
0
;
const
rec_t
*
field
=
rec_get_nth_field_old
(
rec
,
1
,
&
len
);
DBUG_ASSERT
(
len
==
8
);
return
mach_read_from_8
(
field
);
...
...
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