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
744b33c2
Commit
744b33c2
authored
Nov 14, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove a useless header file
parent
ee7fba17
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
65 deletions
+32
-65
storage/innobase/CMakeLists.txt
storage/innobase/CMakeLists.txt
+1
-2
storage/innobase/include/ibuf0ibuf.h
storage/innobase/include/ibuf0ibuf.h
+31
-1
storage/innobase/include/ibuf0ibuf.inl
storage/innobase/include/ibuf0ibuf.inl
+0
-31
storage/innobase/include/ibuf0types.h
storage/innobase/include/ibuf0types.h
+0
-31
No files found.
storage/innobase/CMakeLists.txt
View file @
744b33c2
...
...
@@ -311,8 +311,7 @@ SET(INNOBASE_SOURCES
include/hash0hash.h
include/ib0mutex.h
include/ibuf0ibuf.h
include/ibuf0ibuf.inl/
include/ibuf0types.h
include/ibuf0ibuf.inl
include/lock0iter.h
include/lock0lock.h
include/lock0lock.inl
...
...
storage/innobase/include/ibuf0ibuf.h
View file @
744b33c2
...
...
@@ -30,7 +30,6 @@ Created 7/19/1997 Heikki Tuuri
#include "mtr0mtr.h"
#include "dict0mem.h"
#include "fsp0fsp.h"
#include "ibuf0types.h"
/** Default value for maximum on-disk size of change buffer in terms
of percentage of the buffer pool. */
...
...
@@ -61,6 +60,37 @@ enum ibuf_use_t {
/** Operations that can currently be buffered. */
extern
ulong
innodb_change_buffering
;
/** Insert buffer struct */
struct
ibuf_t
{
ulint
size
;
/*!< current size of the ibuf index
tree, in pages */
ulint
max_size
;
/*!< recommended maximum size of the
ibuf index tree, in pages */
ulint
seg_size
;
/*!< allocated pages of the file
segment containing ibuf header and
tree */
bool
empty
;
/*!< Protected by the page
latch of the root page of the
insert buffer tree
(FSP_IBUF_TREE_ROOT_PAGE_NO). true
if and only if the insert
buffer tree is empty. */
ulint
free_list_len
;
/*!< length of the free list */
ulint
height
;
/*!< tree height */
dict_index_t
*
index
;
/*!< insert buffer index */
/** number of pages merged */
Atomic_counter
<
ulint
>
n_merges
;
Atomic_counter
<
ulint
>
n_merged_ops
[
IBUF_OP_COUNT
];
/*!< number of operations of each type
merged to index pages */
Atomic_counter
<
ulint
>
n_discarded_ops
[
IBUF_OP_COUNT
];
/*!< number of operations of each type
discarded without merging due to the
tablespace being deleted or the
index being dropped */
};
/** The insert buffer control structure */
extern
ibuf_t
ibuf
;
...
...
storage/innobase/include/ibuf0ibuf.inl
View file @
744b33c2
...
...
@@ -64,37 +64,6 @@ ibuf_mtr_commit(
mtr_commit(mtr);
}
/** Insert buffer struct */
struct ibuf_t{
ulint size; /*!< current size of the ibuf index
tree, in pages */
ulint max_size; /*!< recommended maximum size of the
ibuf index tree, in pages */
ulint seg_size; /*!< allocated pages of the file
segment containing ibuf header and
tree */
bool empty; /*!< Protected by the page
latch of the root page of the
insert buffer tree
(FSP_IBUF_TREE_ROOT_PAGE_NO). true
if and only if the insert
buffer tree is empty. */
ulint free_list_len; /*!< length of the free list */
ulint height; /*!< tree height */
dict_index_t* index; /*!< insert buffer index */
/** number of pages merged */
Atomic_counter<ulint> n_merges;
Atomic_counter<ulint> n_merged_ops[IBUF_OP_COUNT];
/*!< number of operations of each type
merged to index pages */
Atomic_counter<ulint> n_discarded_ops[IBUF_OP_COUNT];
/*!< number of operations of each type
discarded without merging due to the
tablespace being deleted or the
index being dropped */
};
/************************************************************************//**
Sets the free bit of the page in the ibuf bitmap. This is done in a separate
mini-transaction, hence this operation does not restrict further work to only
...
...
storage/innobase/include/ibuf0types.h
deleted
100644 → 0
View file @
ee7fba17
/*****************************************************************************
Copyright (c) 1997, 2009, Oracle and/or its affiliates. All Rights Reserved.
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
Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
*****************************************************************************/
/**************************************************//**
@file include/ibuf0types.h
Insert buffer global types
Created 7/29/1997 Heikki Tuuri
*******************************************************/
#ifndef ibuf0types_h
#define ibuf0types_h
struct
ibuf_t
;
#endif
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