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
67a3ddf1
Commit
67a3ddf1
authored
Apr 28, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge-xtradb-5.5' into 5.5
parents
c581ae08
40e95608
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+2
-4
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+2
-2
storage/xtradb/lock/lock0lock.c
storage/xtradb/lock/lock0lock.c
+1
-1
storage/xtradb/srv/srv0start.c
storage/xtradb/srv/srv0start.c
+11
-4
No files found.
storage/xtradb/handler/ha_innodb.cc
View file @
67a3ddf1
...
@@ -11718,10 +11718,8 @@ ha_innobase::cmp_ref(
...
@@ -11718,10 +11718,8 @@ ha_innobase::cmp_ref(
len1
=
innobase_read_from_2_little_endian
(
ref1
);
len1
=
innobase_read_from_2_little_endian
(
ref1
);
len2
=
innobase_read_from_2_little_endian
(
ref2
);
len2
=
innobase_read_from_2_little_endian
(
ref2
);
ref1
+=
2
;
result
=
((
Field_blob
*
)
field
)
->
cmp
(
ref1
+
2
,
len1
,
ref2
+=
2
;
ref2
+
2
,
len2
);
result
=
((
Field_blob
*
)
field
)
->
cmp
(
ref1
,
len1
,
ref2
,
len2
);
}
else
{
}
else
{
result
=
field
->
key_cmp
(
ref1
,
ref2
);
result
=
field
->
key_cmp
(
ref1
,
ref2
);
}
}
...
...
storage/xtradb/include/univ.i
View file @
67a3ddf1
...
@@ -64,10 +64,10 @@ component, i.e. we show M.N.P as M.N */
...
@@ -64,10 +64,10 @@ component, i.e. we show M.N.P as M.N */
(
INNODB_VERSION_MAJOR
<<
8
|
INNODB_VERSION_MINOR
)
(
INNODB_VERSION_MAJOR
<<
8
|
INNODB_VERSION_MINOR
)
#
ifndef
PERCONA_INNODB_VERSION
#
ifndef
PERCONA_INNODB_VERSION
#
define
PERCONA_INNODB_VERSION
37.
0
#
define
PERCONA_INNODB_VERSION
37.
1
#
endif
#
endif
#
define
INNODB_VERSION_STR
"5.5.4
1
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
INNODB_VERSION_STR
"5.5.4
2
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
REFMAN
"http://dev.mysql.com/doc/refman/"
\
#
define
REFMAN
"http://dev.mysql.com/doc/refman/"
\
IB_TO_STR
(
MYSQL_MAJOR_VERSION
)
"."
\
IB_TO_STR
(
MYSQL_MAJOR_VERSION
)
"."
\
...
...
storage/xtradb/lock/lock0lock.c
View file @
67a3ddf1
...
@@ -4720,7 +4720,7 @@ lock_print_info_all_transactions(
...
@@ -4720,7 +4720,7 @@ lock_print_info_all_transactions(
}
}
}
}
if
(
!
srv_print_innodb_lock_monitor
&&
!
srv_show_locks_held
)
{
if
(
!
srv_print_innodb_lock_monitor
||
!
srv_show_locks_held
)
{
nth_trx
++
;
nth_trx
++
;
goto
loop
;
goto
loop
;
}
}
...
...
storage/xtradb/srv/srv0start.c
View file @
67a3ddf1
...
@@ -123,9 +123,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE;
...
@@ -123,9 +123,16 @@ UNIV_INTERN enum srv_shutdown_state srv_shutdown_state = SRV_SHUTDOWN_NONE;
static
os_file_t
files
[
1000
];
static
os_file_t
files
[
1000
];
/** io_handler_thread parameters for thread identification */
/** io_handler_thread parameters for thread identification */
static
ulint
n
[
SRV_MAX_N_IO_THREADS
+
8
];
static
ulint
n
[
SRV_MAX_N_IO_THREADS
];
/** io_handler_thread identifiers */
/** io_handler_thread identifiers. The extra elements at the end are allocated
static
os_thread_id_t
thread_ids
[
SRV_MAX_N_IO_THREADS
+
8
];
as follows:
SRV_MAX_N_IO_THREADS + 1: srv_master_thread
SRV_MAX_N_IO_THREADS + 2: srv_lock_timeout_thread
SRV_MAX_N_IO_THREADS + 3: srv_error_monitor_thread
SRV_MAX_N_IO_THREADS + 4: srv_monitor_thread
SRV_MAX_N_IO_THREADS + 5: srv_LRU_dump_restore_thread
SRV_MAX_N_IO_THREADS + 6: srv_redo_log_follow_thread */
static
os_thread_id_t
thread_ids
[
SRV_MAX_N_IO_THREADS
+
7
];
/** We use this mutex to test the return value of pthread_mutex_trylock
/** We use this mutex to test the return value of pthread_mutex_trylock
on successful locking. HP-UX does NOT return 0, though Linux et al do. */
on successful locking. HP-UX does NOT return 0, though Linux et al do. */
...
@@ -1194,7 +1201,7 @@ init_log_online(void)
...
@@ -1194,7 +1201,7 @@ init_log_online(void)
/* Create the thread that follows the redo log to output the
/* Create the thread that follows the redo log to output the
changed page bitmap */
changed page bitmap */
os_thread_create
(
&
srv_redo_log_follow_thread
,
NULL
,
os_thread_create
(
&
srv_redo_log_follow_thread
,
NULL
,
thread_ids
+
5
+
SRV_MAX_N_IO_THREADS
);
thread_ids
+
6
+
SRV_MAX_N_IO_THREADS
);
}
}
}
}
...
...
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