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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a5352c89
Commit
a5352c89
authored
Nov 03, 2010
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-innodb to mysql-5.5-innodb.
parents
6bcad3dc
bfc70403
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
55 additions
and
60 deletions
+55
-60
storage/innobase/btr/btr0cur.c
storage/innobase/btr/btr0cur.c
+2
-2
storage/innobase/dict/dict0crea.c
storage/innobase/dict/dict0crea.c
+1
-1
storage/innobase/include/btr0btr.h
storage/innobase/include/btr0btr.h
+29
-20
storage/innobase/include/btr0btr.ic
storage/innobase/include/btr0btr.ic
+12
-26
storage/innobase/include/btr0cur.h
storage/innobase/include/btr0cur.h
+1
-1
storage/innobase/include/row0ins.h
storage/innobase/include/row0ins.h
+1
-1
storage/innobase/include/row0upd.h
storage/innobase/include/row0upd.h
+2
-2
storage/innobase/row/row0ins.c
storage/innobase/row/row0ins.c
+3
-3
storage/innobase/row/row0upd.c
storage/innobase/row/row0upd.c
+4
-4
No files found.
storage/innobase/btr/btr0cur.c
View file @
a5352c89
...
...
@@ -1071,7 +1071,7 @@ btr_cur_ins_lock_and_undo(
not zero, the parameters index and thr
should be specified */
btr_cur_t
*
cursor
,
/*!< in: cursor on page after which to insert */
const
dtuple_t
*
entry
,
/*!< in
: entry to insert */
dtuple_t
*
entry
,
/*!< in/out
: entry to insert */
que_thr_t
*
thr
,
/*!< in: query thread or NULL */
mtr_t
*
mtr
,
/*!< in/out: mini-transaction */
ibool
*
inherit
)
/*!< out: TRUE if the inserted new record maybe
...
...
@@ -4073,7 +4073,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to
them in rec. The extern flags in rec will have to be set beforehand.
The fields are stored on pages allocated from leaf node
file segment of the index tree.
@return DB_SUCCESS or
error
*/
@return DB_SUCCESS or
DB_OUT_OF_FILE_SPACE
*/
UNIV_INTERN
ulint
btr_store_big_rec_extern_fields
(
...
...
storage/innobase/dict/dict0crea.c
View file @
a5352c89
...
...
@@ -828,7 +828,7 @@ dict_truncate_index_tree(
appropriate field in the SYS_INDEXES record: this mini-transaction
marks the B-tree totally truncated */
btr_
page
_get
(
space
,
zip_size
,
root_page_no
,
RW_X_LATCH
,
mtr
);
btr_
block
_get
(
space
,
zip_size
,
root_page_no
,
RW_X_LATCH
,
mtr
);
btr_free_root
(
space
,
zip_size
,
root_page_no
,
mtr
);
create:
...
...
storage/innobase/include/btr0btr.h
View file @
a5352c89
...
...
@@ -105,26 +105,35 @@ btr_root_get(
Gets a buffer page and declares its latching order level. */
UNIV_INLINE
buf_block_t
*
btr_block_get
(
/*==========*/
ulint
space
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint
page_no
,
/*!< in: page number */
ulint
mode
,
/*!< in: latch mode */
mtr_t
*
mtr
);
/*!< in: mtr */
/**************************************************************//**
Gets a buffer page and declares its latching order level. */
UNIV_INLINE
page_t
*
btr_page_get
(
/*=========*/
ulint
space
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint
page_no
,
/*!< in: page number */
ulint
mode
,
/*!< in: latch mode */
mtr_t
*
mtr
);
/*!< in: mtr */
btr_block_get_func
(
/*===============*/
ulint
space
,
/*!< in: space id */
ulint
zip_size
,
/*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint
page_no
,
/*!< in: page number */
ulint
mode
,
/*!< in: latch mode */
const
char
*
file
,
/*!< in: file name */
ulint
line
,
/*!< in: line where called */
mtr_t
*
mtr
)
/*!< in/out: mtr */
__attribute__
((
nonnull
));
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param zip_size compressed page size in bytes or 0 for uncompressed pages
@param page_no page number
@param mode latch mode
@param mtr mini-transaction handle
@return the block descriptor */
# define btr_block_get(space,zip_size,page_no,mode,mtr) \
btr_block_get_func(space,zip_size,page_no,mode,__FILE__,__LINE__,mtr)
/** Gets a buffer page and declares its latching order level.
@param space tablespace identifier
@param zip_size compressed page size in bytes or 0 for uncompressed pages
@param page_no page number
@param mode latch mode
@param mtr mini-transaction handle
@return the uncompressed page frame */
# define btr_page_get(space,zip_size,page_no,mode,mtr) \
buf_block_get_frame(btr_block_get(space,zip_size,page_no,mode,mtr))
#endif
/* !UNIV_HOTBACKUP */
/**************************************************************//**
Gets the index id field of a page.
...
...
storage/innobase/include/btr0btr.ic
View file @
a5352c89
...
...
@@ -39,18 +39,21 @@ Created 6/2/1994 Heikki Tuuri
Gets a buffer page and declares its latching order level. */
UNIV_INLINE
buf_block_t*
btr_block_get(
/*==========*/
ulint space, /*!< in: space id */
ulint zip_size, /*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint page_no, /*!< in: page number */
ulint mode, /*!< in: latch mode */
mtr_t* mtr) /*!< in: mtr */
btr_block_get_func(
/*===============*/
ulint space, /*!< in: space id */
ulint zip_size, /*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint page_no, /*!< in: page number */
ulint mode, /*!< in: latch mode */
const char* file, /*!< in: file name */
ulint line, /*!< in: line where called */
mtr_t* mtr) /*!< in/out: mtr */
{
buf_block_t* block;
block = buf_page_get(space, zip_size, page_no, mode, mtr);
block = buf_page_get_gen(space, zip_size, page_no, mode,
NULL, BUF_GET, file, line, mtr);
if (mode != RW_NO_LATCH) {
...
...
@@ -60,23 +63,6 @@ btr_block_get(
return(block);
}
/**************************************************************//**
Gets a buffer page and declares its latching order level. */
UNIV_INLINE
page_t*
btr_page_get(
/*=========*/
ulint space, /*!< in: space id */
ulint zip_size, /*!< in: compressed page size in bytes
or 0 for uncompressed pages */
ulint page_no, /*!< in: page number */
ulint mode, /*!< in: latch mode */
mtr_t* mtr) /*!< in: mtr */
{
return(buf_block_get_frame(btr_block_get(space, zip_size, page_no,
mode, mtr)));
}
/**************************************************************//**
Sets the index id field of a page. */
UNIV_INLINE
...
...
storage/innobase/include/btr0cur.h
View file @
a5352c89
...
...
@@ -508,7 +508,7 @@ Stores the fields in big_rec_vec to the tablespace and puts pointers to
them in rec. The extern flags in rec will have to be set beforehand.
The fields are stored on pages allocated from leaf node
file segment of the index tree.
@return DB_SUCCESS or
error
*/
@return DB_SUCCESS or
DB_OUT_OF_FILE_SPACE
*/
UNIV_INTERN
ulint
btr_store_big_rec_extern_fields
(
...
...
storage/innobase/include/row0ins.h
View file @
a5352c89
...
...
@@ -84,7 +84,7 @@ ulint
row_ins_index_entry
(
/*================*/
dict_index_t
*
index
,
/*!< in: index */
dtuple_t
*
entry
,
/*!< in: index entry to insert */
dtuple_t
*
entry
,
/*!< in
/out
: index entry to insert */
ulint
n_ext
,
/*!< in: number of externally stored columns */
ibool
foreign
,
/*!< in: TRUE=check foreign key constraints */
que_thr_t
*
thr
);
/*!< in: query thread */
...
...
storage/innobase/include/row0upd.h
View file @
a5352c89
...
...
@@ -126,8 +126,8 @@ UNIV_INTERN
void
row_upd_index_entry_sys_field
(
/*==========================*/
const
dtuple_t
*
entry
,
/*!< in: index entry, where the memory buffers
for sys fields are already allocated:
dtuple_t
*
entry
,
/*!< in/out: index entry, where the memory
buffers
for sys fields are already allocated:
the function just copies the new values to
them */
dict_index_t
*
index
,
/*!< in: clustered index */
...
...
storage/innobase/row/row0ins.c
View file @
a5352c89
...
...
@@ -1768,7 +1768,7 @@ ulint
row_ins_duplicate_error_in_clust
(
/*=============================*/
btr_cur_t
*
cursor
,
/*!< in: B-tree cursor */
dtuple_t
*
entry
,
/*!< in: entry to insert */
const
dtuple_t
*
entry
,
/*!< in: entry to insert */
que_thr_t
*
thr
,
/*!< in: query thread */
mtr_t
*
mtr
)
/*!< in: mtr */
{
...
...
@@ -1964,7 +1964,7 @@ row_ins_index_entry_low(
depending on whether we wish optimistic or
pessimistic descent down the index tree */
dict_index_t
*
index
,
/*!< in: index */
dtuple_t
*
entry
,
/*!< in: index entry to insert */
dtuple_t
*
entry
,
/*!< in
/out
: index entry to insert */
ulint
n_ext
,
/*!< in: number of externally stored columns */
que_thr_t
*
thr
)
/*!< in: query thread */
{
...
...
@@ -2150,7 +2150,7 @@ ulint
row_ins_index_entry
(
/*================*/
dict_index_t
*
index
,
/*!< in: index */
dtuple_t
*
entry
,
/*!< in: index entry to insert */
dtuple_t
*
entry
,
/*!< in
/out
: index entry to insert */
ulint
n_ext
,
/*!< in: number of externally stored columns */
ibool
foreign
,
/*!< in: TRUE=check foreign key constraints */
que_thr_t
*
thr
)
/*!< in: query thread */
...
...
storage/innobase/row/row0upd.c
View file @
a5352c89
...
...
@@ -371,8 +371,8 @@ UNIV_INTERN
void
row_upd_index_entry_sys_field
(
/*==========================*/
const
dtuple_t
*
entry
,
/*!< in: index entry, where the memory buffers
for sys fields are already allocated:
dtuple_t
*
entry
,
/*!< in/out: index entry, where the memory
buffers
for sys fields are already allocated:
the function just copies the new values to
them */
dict_index_t
*
index
,
/*!< in: clustered index */
...
...
@@ -1615,12 +1615,12 @@ static
ulint
row_upd_clust_rec_by_insert
(
/*========================*/
upd_node_t
*
node
,
/*!< in: row update node */
upd_node_t
*
node
,
/*!< in
/out
: row update node */
dict_index_t
*
index
,
/*!< in: clustered index of the record */
que_thr_t
*
thr
,
/*!< in: query thread */
ibool
referenced
,
/*!< in: TRUE if index may be referenced in
a foreign key constraint */
mtr_t
*
mtr
)
/*!< in: mtr; gets committed here */
mtr_t
*
mtr
)
/*!< in
/out
: mtr; gets committed here */
{
mem_heap_t
*
heap
=
NULL
;
btr_pcur_t
*
pcur
;
...
...
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