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
7f548943
Commit
7f548943
authored
Jul 24, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mtr_set_flush_observer()
parent
aad70e9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
20 deletions
+9
-20
storage/innobase/btr/btr0bulk.cc
storage/innobase/btr/btr0bulk.cc
+9
-13
storage/innobase/include/mtr0mtr.h
storage/innobase/include/mtr0mtr.h
+0
-7
No files found.
storage/innobase/btr/btr0bulk.cc
View file @
7f548943
/*****************************************************************************
Copyright (c) 2014, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
Copyright (c) 2017,
2018,
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
...
...
@@ -50,10 +50,10 @@ PageBulk::init()
mtr
=
static_cast
<
mtr_t
*>
(
mem_heap_alloc
(
m_heap
,
sizeof
(
mtr_t
)));
mtr
_start
(
mtr
);
mtr
->
start
(
);
mtr_x_lock
(
dict_index_get_lock
(
m_index
),
mtr
);
mtr
_set_log_mode
(
mtr
,
MTR_LOG_NO_REDO
);
mtr
_set_flush_observer
(
mtr
,
m_flush_observer
);
mtr
->
set_log_mode
(
MTR_LOG_NO_REDO
);
mtr
->
set_flush_observer
(
m_flush_observer
);
if
(
m_page_no
==
FIL_NULL
)
{
mtr_t
alloc_mtr
;
...
...
@@ -597,18 +597,14 @@ PageBulk::release()
dberr_t
PageBulk
::
latch
()
{
ibool
ret
;
mtr_start
(
m_mtr
);
m_mtr
->
start
();
mtr_x_lock
(
dict_index_get_lock
(
m_index
),
m_mtr
);
m
tr_set_log_mode
(
m_mtr
,
MTR_LOG_NO_REDO
);
m
tr_set_flush_observer
(
m_mtr
,
m_flush_observer
);
m
_mtr
->
set_log_mode
(
MTR_LOG_NO_REDO
);
m
_mtr
->
set_flush_observer
(
m_flush_observer
);
/* TODO: need a simple and wait version of buf_page_optimistic_get. */
ret
=
buf_page_optimistic_get
(
RW_X_LATCH
,
m_block
,
m_modify_clock
,
__FILE__
,
__LINE__
,
m_mtr
);
/* In case the block is S-latched by page_cleaner. */
if
(
!
ret
)
{
if
(
!
buf_page_optimistic_get
(
RW_X_LATCH
,
m_block
,
m_modify_clock
,
__FILE__
,
__LINE__
,
m_mtr
))
{
page_id_t
page_id
(
dict_index_get_space
(
m_index
),
m_page_no
);
page_size_t
page_size
(
dict_table_page_size
(
m_index
->
table
));
...
...
storage/innobase/include/mtr0mtr.h
View file @
7f548943
...
...
@@ -63,13 +63,6 @@ savepoint. */
@return old mode */
#define mtr_set_log_mode(m, d) (m)->set_log_mode((d))
/** Get the flush observer of a mini-transaction.
@return flush observer object */
#define mtr_get_flush_observer(m) (m)->get_flush_observer()
/** Set the flush observer of a mini-transaction. */
#define mtr_set_flush_observer(m, d) (m)->set_flush_observer((d))
/** Read 1 - 4 bytes from a file page buffered in the buffer pool.
@return value read */
#define mtr_read_ulint(p, t, m) (m)->read_ulint((p), (t))
...
...
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