Skip to content

Commit 744b33c

Browse files
committed
Cleanup: Remove a useless header file
1 parent ee7fba1 commit 744b33c

File tree

4 files changed

+32
-65
lines changed

4 files changed

+32
-65
lines changed

storage/innobase/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ SET(INNOBASE_SOURCES
311311
include/hash0hash.h
312312
include/ib0mutex.h
313313
include/ibuf0ibuf.h
314-
include/ibuf0ibuf.inl/
315-
include/ibuf0types.h
314+
include/ibuf0ibuf.inl
316315
include/lock0iter.h
317316
include/lock0lock.h
318317
include/lock0lock.inl

storage/innobase/include/ibuf0ibuf.h

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Created 7/19/1997 Heikki Tuuri
3030
#include "mtr0mtr.h"
3131
#include "dict0mem.h"
3232
#include "fsp0fsp.h"
33-
#include "ibuf0types.h"
3433

3534
/** Default value for maximum on-disk size of change buffer in terms
3635
of percentage of the buffer pool. */
@@ -61,6 +60,37 @@ enum ibuf_use_t {
6160
/** Operations that can currently be buffered. */
6261
extern ulong innodb_change_buffering;
6362

63+
/** Insert buffer struct */
64+
struct ibuf_t{
65+
ulint size; /*!< current size of the ibuf index
66+
tree, in pages */
67+
ulint max_size; /*!< recommended maximum size of the
68+
ibuf index tree, in pages */
69+
ulint seg_size; /*!< allocated pages of the file
70+
segment containing ibuf header and
71+
tree */
72+
bool empty; /*!< Protected by the page
73+
latch of the root page of the
74+
insert buffer tree
75+
(FSP_IBUF_TREE_ROOT_PAGE_NO). true
76+
if and only if the insert
77+
buffer tree is empty. */
78+
ulint free_list_len; /*!< length of the free list */
79+
ulint height; /*!< tree height */
80+
dict_index_t* index; /*!< insert buffer index */
81+
82+
/** number of pages merged */
83+
Atomic_counter<ulint> n_merges;
84+
Atomic_counter<ulint> n_merged_ops[IBUF_OP_COUNT];
85+
/*!< number of operations of each type
86+
merged to index pages */
87+
Atomic_counter<ulint> n_discarded_ops[IBUF_OP_COUNT];
88+
/*!< number of operations of each type
89+
discarded without merging due to the
90+
tablespace being deleted or the
91+
index being dropped */
92+
};
93+
6494
/** The insert buffer control structure */
6595
extern ibuf_t ibuf;
6696

storage/innobase/include/ibuf0ibuf.inl

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -64,37 +64,6 @@ ibuf_mtr_commit(
6464
mtr_commit(mtr);
6565
}
6666

67-
/** Insert buffer struct */
68-
struct ibuf_t{
69-
ulint size; /*!< current size of the ibuf index
70-
tree, in pages */
71-
ulint max_size; /*!< recommended maximum size of the
72-
ibuf index tree, in pages */
73-
ulint seg_size; /*!< allocated pages of the file
74-
segment containing ibuf header and
75-
tree */
76-
bool empty; /*!< Protected by the page
77-
latch of the root page of the
78-
insert buffer tree
79-
(FSP_IBUF_TREE_ROOT_PAGE_NO). true
80-
if and only if the insert
81-
buffer tree is empty. */
82-
ulint free_list_len; /*!< length of the free list */
83-
ulint height; /*!< tree height */
84-
dict_index_t* index; /*!< insert buffer index */
85-
86-
/** number of pages merged */
87-
Atomic_counter<ulint> n_merges;
88-
Atomic_counter<ulint> n_merged_ops[IBUF_OP_COUNT];
89-
/*!< number of operations of each type
90-
merged to index pages */
91-
Atomic_counter<ulint> n_discarded_ops[IBUF_OP_COUNT];
92-
/*!< number of operations of each type
93-
discarded without merging due to the
94-
tablespace being deleted or the
95-
index being dropped */
96-
};
97-
9867
/************************************************************************//**
9968
Sets the free bit of the page in the ibuf bitmap. This is done in a separate
10069
mini-transaction, hence this operation does not restrict further work to only

storage/innobase/include/ibuf0types.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)