Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
MariaDB
Commits
cf2789bf
Commit
cf2789bf
authored
7 years ago
by
Marko Mäkelä
Browse files
Options
Download
Email Patches
Plain Diff
ha_innobase::write_row(): Test the cheaper condition first
parent
92f1837a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+5
-5
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
cf2789bf
...
...
@@ -8496,15 +8496,15 @@ ha_innobase::write_row(
|| sql_command == SQLCOM_OPTIMIZE
|| sql_command == SQLCOM_CREATE_INDEX
#ifdef WITH_WSREP
|| (
wsrep_on(m_user_thd) && wsrep_load_data_splitting &&
sql_command == SQLCOM_LOAD &&
!thd_test_options(
m_user_thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))
|| (
sql_command == SQLCOM_LOAD
&& wsrep_load_data_splitting && wsrep_on(m_user_thd)
&&
!thd_test_options(
m_user_thd, OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN))
#endif /* WITH_WSREP */
|| sql_command == SQLCOM_DROP_INDEX)
&& m_num_write_row >= 10000) {
#ifdef WITH_WSREP
if (
wsrep_on(m_user_thd) &&
sql_command == SQLCOM_LOAD) {
if (sql_command == SQLCOM_LOAD
&& wsrep_on(m_user_thd)
) {
WSREP_DEBUG("forced trx split for LOAD: %s",
wsrep_thd_query(m_user_thd));
}
...
...
This diff is collapsed.
Click to expand it.
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