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
893ebb73
Commit
893ebb73
authored
Oct 24, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'merge/merge-xtradb-5.5' into 5.5
parents
7223369d
5bc30247
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
123 additions
and
63 deletions
+123
-63
storage/xtradb/.clang-format
storage/xtradb/.clang-format
+111
-0
storage/xtradb/fsp/fsp0fsp.c
storage/xtradb/fsp/fsp0fsp.c
+0
-37
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+2
-2
storage/xtradb/handler/ha_innodb.h
storage/xtradb/handler/ha_innodb.h
+1
-1
storage/xtradb/include/data0type.ic
storage/xtradb/include/data0type.ic
+2
-0
storage/xtradb/include/univ.i
storage/xtradb/include/univ.i
+2
-2
storage/xtradb/log/log0online.c
storage/xtradb/log/log0online.c
+2
-2
storage/xtradb/os/os0sync.c
storage/xtradb/os/os0sync.c
+0
-18
storage/xtradb/row/row0sel.c
storage/xtradb/row/row0sel.c
+1
-1
storage/xtradb/srv/srv0srv.c
storage/xtradb/srv/srv0srv.c
+2
-0
No files found.
storage/xtradb/.clang-format
0 → 100644
View file @
893ebb73
# generated with:
# clang-format-5.0 -style=Google --dump-config
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
SortUsingDeclarations: true
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 8
# changes for MySQL 5.x (InnoDB)
AlignConsecutiveDeclarations: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: All
ColumnLimit: 78
DerivePointerAlignment: false
IndentWidth: 8
MaxEmptyLinesToKeep: 2
PointerAlignment: Right
ReflowComments: false
SortIncludes: false
SpaceAfterCStyleCast: true
UseTab: Always
storage/xtradb/fsp/fsp0fsp.c
View file @
893ebb73
...
@@ -431,43 +431,6 @@ xdes_find_bit(
...
@@ -431,43 +431,6 @@ xdes_find_bit(
return
(
ULINT_UNDEFINED
);
return
(
ULINT_UNDEFINED
);
}
}
/**********************************************************************//**
Looks for a descriptor bit having the desired value. Scans the extent in
a direction opposite to xdes_find_bit.
@return bit index of the bit, ULINT_UNDEFINED if not found */
UNIV_INLINE
ulint
xdes_find_bit_downward
(
/*===================*/
xdes_t
*
descr
,
/*!< in: descriptor */
ulint
bit
,
/*!< in: XDES_FREE_BIT or XDES_CLEAN_BIT */
ibool
val
,
/*!< in: desired bit value */
ulint
hint
,
/*!< in: hint of which bit position would be desirable */
mtr_t
*
mtr
)
/*!< in: mtr */
{
ulint
i
;
ut_ad
(
descr
&&
mtr
);
ut_ad
(
val
<=
TRUE
);
ut_ad
(
hint
<
FSP_EXTENT_SIZE
);
ut_ad
(
mtr_memo_contains_page
(
mtr
,
descr
,
MTR_MEMO_PAGE_X_FIX
));
for
(
i
=
hint
+
1
;
i
>
0
;
i
--
)
{
if
(
val
==
xdes_get_bit
(
descr
,
bit
,
i
-
1
,
mtr
))
{
return
(
i
-
1
);
}
}
for
(
i
=
FSP_EXTENT_SIZE
-
1
;
i
>
hint
;
i
--
)
{
if
(
val
==
xdes_get_bit
(
descr
,
bit
,
i
,
mtr
))
{
return
(
i
);
}
}
return
(
ULINT_UNDEFINED
);
}
/**********************************************************************//**
/**********************************************************************//**
Returns the number of used pages in a descriptor.
Returns the number of used pages in a descriptor.
@return number of pages used */
@return number of pages used */
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
893ebb73
...
@@ -6369,6 +6369,8 @@ ha_innobase::write_row(
...
@@ -6369,6 +6369,8 @@ ha_innobase::write_row(
innodb_srv_conc_enter_innodb
(
prebuilt
->
trx
);
innodb_srv_conc_enter_innodb
(
prebuilt
->
trx
);
error
=
row_insert_for_mysql
((
byte
*
)
record
,
prebuilt
);
error
=
row_insert_for_mysql
((
byte
*
)
record
,
prebuilt
);
DEBUG_SYNC
(
user_thd
,
"ib_after_row_insert"
);
#ifdef EXTENDED_FOR_USERSTAT
#ifdef EXTENDED_FOR_USERSTAT
if
(
UNIV_LIKELY
(
error
==
DB_SUCCESS
&&
!
trx
->
fake_changes
))
{
if
(
UNIV_LIKELY
(
error
==
DB_SUCCESS
&&
!
trx
->
fake_changes
))
{
...
@@ -7842,8 +7844,6 @@ create_table_def(
...
@@ -7842,8 +7844,6 @@ create_table_def(
}
}
}
}
ut_a
(
field
->
type
()
<
256
);
/* we assume in dtype_form_prtype()
that this fits in one byte */
col_len
=
field
->
pack_length
();
col_len
=
field
->
pack_length
();
/* The MySQL pack length contains 1 or 2 bytes length field
/* The MySQL pack length contains 1 or 2 bytes length field
...
...
storage/xtradb/handler/ha_innodb.h
View file @
893ebb73
...
@@ -183,7 +183,7 @@ class ha_innobase: public handler
...
@@ -183,7 +183,7 @@ class ha_innobase: public handler
ha_rows
estimate_rows_upper_bound
();
ha_rows
estimate_rows_upper_bound
();
void
update_create_info
(
HA_CREATE_INFO
*
create_info
);
void
update_create_info
(
HA_CREATE_INFO
*
create_info
);
int
create
(
const
char
*
name
,
register
TABLE
*
form
,
int
create
(
const
char
*
name
,
TABLE
*
form
,
HA_CREATE_INFO
*
create_info
);
HA_CREATE_INFO
*
create_info
);
int
truncate
();
int
truncate
();
int
delete_table
(
const
char
*
name
);
int
delete_table
(
const
char
*
name
);
...
...
storage/xtradb/include/data0type.ic
View file @
893ebb73
...
@@ -427,6 +427,7 @@ dtype_get_fixed_size_low(
...
@@ -427,6 +427,7 @@ dtype_get_fixed_size_low(
return(0);
return(0);
}
}
#endif /* UNIV_DEBUG */
#endif /* UNIV_DEBUG */
// fallthrough
case DATA_CHAR:
case DATA_CHAR:
case DATA_FIXBINARY:
case DATA_FIXBINARY:
case DATA_INT:
case DATA_INT:
...
@@ -503,6 +504,7 @@ dtype_get_min_size_low(
...
@@ -503,6 +504,7 @@ dtype_get_min_size_low(
return(0);
return(0);
}
}
#endif /* UNIV_DEBUG */
#endif /* UNIV_DEBUG */
// fallthrough
case DATA_CHAR:
case DATA_CHAR:
case DATA_FIXBINARY:
case DATA_FIXBINARY:
case DATA_INT:
case DATA_INT:
...
...
storage/xtradb/include/univ.i
View file @
893ebb73
...
@@ -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
38.1
1
#
define
PERCONA_INNODB_VERSION
38.1
3
#
endif
#
endif
#
define
INNODB_VERSION_STR
"5.5.
59
-MariaDB-"
IB_TO_STR
(
PERCONA_INNODB_VERSION
)
#
define
INNODB_VERSION_STR
"5.5.
61
-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/log/log0online.c
View file @
893ebb73
...
@@ -1561,10 +1561,10 @@ log_online_open_bitmap_file_read_only(
...
@@ -1561,10 +1561,10 @@ log_online_open_bitmap_file_read_only(
if
(
srv_data_home_len
if
(
srv_data_home_len
&&
srv_data_home
[
srv_data_home_len
-
1
]
&&
srv_data_home
[
srv_data_home_len
-
1
]
!=
SRV_PATH_SEPARATOR
)
{
!=
SRV_PATH_SEPARATOR
)
{
ut_snprintf
(
bitmap_file
->
name
,
FN_REFLEN
,
"%s%c%s"
,
ut_snprintf
(
bitmap_file
->
name
,
sizeof
(
bitmap_file
->
name
)
,
"%s%c%s"
,
srv_data_home
,
SRV_PATH_SEPARATOR
,
name
);
srv_data_home
,
SRV_PATH_SEPARATOR
,
name
);
}
else
{
}
else
{
ut_snprintf
(
bitmap_file
->
name
,
FN_REFLEN
,
"%s%s"
,
ut_snprintf
(
bitmap_file
->
name
,
sizeof
(
bitmap_file
->
name
)
,
"%s%s"
,
srv_data_home
,
name
);
srv_data_home
,
name
);
}
}
bitmap_file
->
file
bitmap_file
->
file
...
...
storage/xtradb/os/os0sync.c
View file @
893ebb73
...
@@ -226,24 +226,6 @@ os_cond_broadcast(
...
@@ -226,24 +226,6 @@ os_cond_broadcast(
#endif
#endif
}
}
/*********************************************************//**
Wakes one thread waiting for condition variable */
UNIV_INLINE
void
os_cond_signal
(
/*==========*/
os_cond_t
*
cond
)
/*!< in: condition variable. */
{
ut_a
(
cond
);
#ifdef __WIN__
ut_a
(
wake_condition_variable
!=
NULL
);
wake_condition_variable
(
cond
);
#else
ut_a
(
pthread_cond_signal
(
cond
)
==
0
);
#endif
}
/*********************************************************//**
/*********************************************************//**
Destroys condition variable */
Destroys condition variable */
UNIV_INLINE
UNIV_INLINE
...
...
storage/xtradb/row/row0sel.c
View file @
893ebb73
...
@@ -4434,7 +4434,7 @@ row_search_for_mysql(
...
@@ -4434,7 +4434,7 @@ row_search_for_mysql(
prebuilt
->
new_rec_locks
=
1
;
prebuilt
->
new_rec_locks
=
1
;
}
}
err
=
DB_SUCCESS
;
err
=
DB_SUCCESS
;
/* fall through */
break
;
case
DB_SUCCESS
:
case
DB_SUCCESS
:
break
;
break
;
case
DB_LOCK_WAIT
:
case
DB_LOCK_WAIT
:
...
...
storage/xtradb/srv/srv0srv.c
View file @
893ebb73
...
@@ -1424,6 +1424,8 @@ srv_conc_enter_innodb(
...
@@ -1424,6 +1424,8 @@ srv_conc_enter_innodb(
os_fast_mutex_unlock
(
&
srv_conc_mutex
);
os_fast_mutex_unlock
(
&
srv_conc_mutex
);
DEBUG_SYNC_C
(
"user_thread_waiting"
);
trx
->
op_info
=
"sleeping before joining InnoDB queue"
;
trx
->
op_info
=
"sleeping before joining InnoDB queue"
;
/* Peter Zaitsev suggested that we take the sleep away
/* Peter Zaitsev suggested that we take the sleep away
...
...
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