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
288a3b91
Commit
288a3b91
authored
Nov 09, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.5 => 5.5-mtr
parents
ef97f0ae
0dc19044
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
161 additions
and
232 deletions
+161
-232
mysql-test/t/mysql_plugin.test
mysql-test/t/mysql_plugin.test
+3
-0
storage/innobase/btr/btr0pcur.c
storage/innobase/btr/btr0pcur.c
+2
-0
storage/innobase/buf/buf0buf.c
storage/innobase/buf/buf0buf.c
+21
-4
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+8
-0
storage/innobase/ibuf/ibuf0ibuf.c
storage/innobase/ibuf/ibuf0ibuf.c
+127
-188
storage/innobase/include/btr0pcur.h
storage/innobase/include/btr0pcur.h
+0
-8
storage/innobase/include/btr0pcur.ic
storage/innobase/include/btr0pcur.ic
+0
-32
No files found.
mysql-test/t/mysql_plugin.test
View file @
288a3b91
...
...
@@ -142,8 +142,11 @@ EOF
--
echo
# Simulate loading a plugin libary with multiple entry points.
--
echo
# This will test the DISABLE to ensure all rows are removed.
--
echo
#
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSERT
INTO
mysql
.
plugin
VALUES
(
'wicky'
,
'$DAEMONEXAMPLE'
);
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSERT
INTO
mysql
.
plugin
VALUES
(
'wacky'
,
'$DAEMONEXAMPLE'
);
--
replace_regex
/
\
.
dll
/.
so
/
eval
INSERT
INTO
mysql
.
plugin
VALUES
(
'wonky'
,
'$DAEMONEXAMPLE'
);
--
echo
#
...
...
storage/innobase/btr/btr0pcur.c
View file @
288a3b91
...
...
@@ -247,6 +247,8 @@ btr_pcur_restore_position_func(
cursor
->
rel_pos
==
BTR_PCUR_BEFORE_FIRST_IN_TREE
,
index
,
latch_mode
,
btr_pcur_get_btr_cur
(
cursor
),
mtr
);
cursor
->
latch_mode
=
latch_mode
;
cursor
->
pos_state
=
BTR_PCUR_IS_POSITIONED
;
cursor
->
block_when_stored
=
btr_pcur_get_block
(
cursor
);
return
(
FALSE
);
...
...
storage/innobase/buf/buf0buf.c
View file @
288a3b91
...
...
@@ -839,6 +839,16 @@ pfs_register_buffer_block(
rwlock
->
pfs_psi
=
(
PSI_server
)
?
PSI_server
->
init_rwlock
(
buf_block_lock_key
,
rwlock
)
:
NULL
;
# ifdef UNIV_SYNC_DEBUG
rwlock
=
&
block
->
debug_latch
;
ut_a
(
!
rwlock
->
pfs_psi
);
rwlock
->
pfs_psi
=
(
PSI_server
)
?
PSI_server
->
init_rwlock
(
buf_block_debug_latch_key
,
rwlock
)
:
NULL
;
# endif
/* UNIV_SYNC_DEBUG */
# endif
/* UNIV_PFS_RWLOCK */
block
++
;
}
...
...
@@ -895,17 +905,24 @@ buf_block_init(
mutex_create
(
PFS_NOT_INSTRUMENTED
,
&
block
->
mutex
,
SYNC_BUF_BLOCK
);
rw_lock_create
(
PFS_NOT_INSTRUMENTED
,
&
block
->
lock
,
SYNC_LEVEL_VARYING
);
# ifdef UNIV_SYNC_DEBUG
rw_lock_create
(
PFS_NOT_INSTRUMENTED
,
&
block
->
debug_latch
,
SYNC_NO_ORDER_CHECK
);
# endif
/* UNIV_SYNC_DEBUG */
#else
/* PFS_SKIP_BUFFER_MUTEX_RWLOCK || PFS_GROUP_BUFFER_SYNC */
mutex_create
(
buffer_block_mutex_key
,
&
block
->
mutex
,
SYNC_BUF_BLOCK
);
rw_lock_create
(
buf_block_lock_key
,
&
block
->
lock
,
SYNC_LEVEL_VARYING
);
# ifdef UNIV_SYNC_DEBUG
rw_lock_create
(
buf_block_debug_latch_key
,
&
block
->
debug_latch
,
SYNC_NO_ORDER_CHECK
);
# endif
/* UNIV_SYNC_DEBUG */
#endif
/* PFS_SKIP_BUFFER_MUTEX_RWLOCK || PFS_GROUP_BUFFER_SYNC */
ut_ad
(
rw_lock_validate
(
&
(
block
->
lock
)));
#ifdef UNIV_SYNC_DEBUG
rw_lock_create
(
buf_block_debug_latch_key
,
&
block
->
debug_latch
,
SYNC_NO_ORDER_CHECK
);
#endif
/* UNIV_SYNC_DEBUG */
}
/********************************************************************//**
...
...
storage/innobase/handler/ha_innodb.cc
View file @
288a3b91
...
...
@@ -5700,6 +5700,7 @@ ha_innobase::index_read(
(
byte
*
)
key_ptr
,
(
ulint
)
key_len
,
prebuilt
->
trx
);
DBUG_ASSERT
(
prebuilt
->
search_tuple
->
n_fields
>
0
);
}
else
{
/* We position the cursor to the last or the first entry
in the index */
...
...
@@ -7527,6 +7528,7 @@ ha_innobase::records_in_range(
mem_heap_t
*
heap
;
DBUG_ENTER
(
"records_in_range"
);
DBUG_ASSERT
(
min_key
||
max_key
);
ut_a
(
prebuilt
->
trx
==
thd_to_trx
(
ha_thd
()));
...
...
@@ -7576,6 +7578,9 @@ ha_innobase::records_in_range(
(
const
uchar
*
)
0
),
(
ulint
)
(
min_key
?
min_key
->
length
:
0
),
prebuilt
->
trx
);
DBUG_ASSERT
(
min_key
?
range_start
->
n_fields
>
0
:
range_start
->
n_fields
==
0
);
row_sel_convert_mysql_key_to_innobase
(
range_end
,
(
byte
*
)
key_val_buff2
,
...
...
@@ -7584,6 +7589,9 @@ ha_innobase::records_in_range(
(
const
uchar
*
)
0
),
(
ulint
)
(
max_key
?
max_key
->
length
:
0
),
prebuilt
->
trx
);
DBUG_ASSERT
(
max_key
?
range_end
->
n_fields
>
0
:
range_end
->
n_fields
==
0
);
mode1
=
convert_search_mode_to_innobase
(
min_key
?
min_key
->
flag
:
HA_READ_KEY_EXACT
);
...
...
storage/innobase/ibuf/ibuf0ibuf.c
View file @
288a3b91
This diff is collapsed.
Click to expand it.
storage/innobase/include/btr0pcur.h
View file @
288a3b91
...
...
@@ -263,14 +263,6 @@ btr_pcur_commit_specify_mtr(
/*========================*/
btr_pcur_t
*
pcur
,
/*!< in: persistent cursor */
mtr_t
*
mtr
);
/*!< in: mtr to commit */
/**************************************************************//**
Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
@return TRUE if detached */
UNIV_INLINE
ibool
btr_pcur_is_detached
(
/*=================*/
btr_pcur_t
*
pcur
);
/*!< in: persistent cursor */
/*********************************************************//**
Moves the persistent cursor to the next record in the tree. If no records are
left, the cursor stays 'after last in tree'.
...
...
storage/innobase/include/btr0pcur.ic
View file @
288a3b91
...
...
@@ -388,38 +388,6 @@ btr_pcur_commit_specify_mtr(
pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
}
/**************************************************************//**
Sets the pcur latch mode to BTR_NO_LATCHES. */
UNIV_INLINE
void
btr_pcur_detach(
/*============*/
btr_pcur_t* pcur) /*!< in: persistent cursor */
{
ut_a(pcur->pos_state == BTR_PCUR_IS_POSITIONED);
pcur->latch_mode = BTR_NO_LATCHES;
pcur->pos_state = BTR_PCUR_WAS_POSITIONED;
}
/**************************************************************//**
Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
@return TRUE if detached */
UNIV_INLINE
ibool
btr_pcur_is_detached(
/*=================*/
btr_pcur_t* pcur) /*!< in: persistent cursor */
{
if (pcur->latch_mode == BTR_NO_LATCHES) {
return(TRUE);
}
return(FALSE);
}
/**************************************************************//**
Sets the old_rec_buf field to NULL. */
UNIV_INLINE
...
...
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