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
2000a900
Commit
2000a900
authored
Aug 31, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
2f20be94
38ca9be4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
36 deletions
+24
-36
storage/innobase/btr/btr0scrub.cc
storage/innobase/btr/btr0scrub.cc
+5
-7
storage/innobase/fil/fil0crypt.cc
storage/innobase/fil/fil0crypt.cc
+2
-1
storage/innobase/include/btr0scrub.h
storage/innobase/include/btr0scrub.h
+4
-7
storage/innobase/srv/srv0start.cc
storage/innobase/srv/srv0start.cc
+1
-3
storage/xtradb/btr/btr0scrub.cc
storage/xtradb/btr/btr0scrub.cc
+5
-7
storage/xtradb/fil/fil0crypt.cc
storage/xtradb/fil/fil0crypt.cc
+2
-1
storage/xtradb/include/btr0scrub.h
storage/xtradb/include/btr0scrub.h
+4
-7
storage/xtradb/srv/srv0start.cc
storage/xtradb/srv/srv0start.cc
+1
-3
No files found.
storage/innobase/btr/btr0scrub.cc
View file @
2000a900
...
@@ -883,17 +883,15 @@ btr_scrub_update_total_stat(btr_scrub_t *scrub_data)
...
@@ -883,17 +883,15 @@ btr_scrub_update_total_stat(btr_scrub_t *scrub_data)
memset
(
&
scrub_data
->
scrub_stat
,
0
,
sizeof
(
scrub_data
->
scrub_stat
));
memset
(
&
scrub_data
->
scrub_stat
,
0
,
sizeof
(
scrub_data
->
scrub_stat
));
}
}
/**
************************************************************//**
/**
Complete iterating a space.
Complete iterating a space
*/
@param[in,out] scrub_data scrub data
*/
UNIV_INTERN
UNIV_INTERN
bool
void
btr_scrub_complete_space
(
btr_scrub_complete_space
(
btr_scrub_t
*
scrub_data
)
/*=====================*/
btr_scrub_t
*
scrub_data
)
/*!< in/out: scrub data */
{
{
ut_ad
(
scrub_data
->
scrubbing
);
btr_scrub_table_close_for_thread
(
scrub_data
);
btr_scrub_table_close_for_thread
(
scrub_data
);
btr_scrub_update_total_stat
(
scrub_data
);
btr_scrub_update_total_stat
(
scrub_data
);
return
scrub_data
->
scrubbing
;
}
}
/*********************************************************************
/*********************************************************************
...
...
storage/innobase/fil/fil0crypt.cc
View file @
2000a900
...
@@ -2083,7 +2083,8 @@ fil_crypt_complete_rotate_space(
...
@@ -2083,7 +2083,8 @@ fil_crypt_complete_rotate_space(
mutex_exit
(
&
crypt_data
->
mutex
);
mutex_exit
(
&
crypt_data
->
mutex
);
/* all threads must call btr_scrub_complete_space wo/ mutex held */
/* all threads must call btr_scrub_complete_space wo/ mutex held */
if
(
btr_scrub_complete_space
(
&
state
->
scrub_data
)
==
true
)
{
if
(
state
->
scrub_data
.
scrubbing
)
{
btr_scrub_complete_space
(
&
state
->
scrub_data
);
if
(
should_flush
)
{
if
(
should_flush
)
{
/* only last thread updates last_scrub_completed */
/* only last thread updates last_scrub_completed */
ut_ad
(
crypt_data
);
ut_ad
(
crypt_data
);
...
...
storage/innobase/include/btr0scrub.h
View file @
2000a900
...
@@ -154,13 +154,10 @@ btr_scrub_start_space(
...
@@ -154,13 +154,10 @@ btr_scrub_start_space(
ulint
space
,
/*!< in: space */
ulint
space
,
/*!< in: space */
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
/****************************************************************
/** Complete iterating a space.
Complete iterating a space
@param[in,out] scrub_data scrub data */
* @return true if space was scrubbed */
UNIV_INTERN
UNIV_INTERN
bool
void
btr_scrub_complete_space
(
btr_scrub_complete_space
(
btr_scrub_t
*
scrub_data
);
/*=====================*/
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
#endif
#endif
storage/innobase/srv/srv0start.cc
View file @
2000a900
...
@@ -2729,6 +2729,7 @@ innobase_start_or_create_for_mysql()
...
@@ -2729,6 +2729,7 @@ innobase_start_or_create_for_mysql()
will flush dirty pages and that might need e.g.
will flush dirty pages and that might need e.g.
fil_crypt_threads_event. */
fil_crypt_threads_event. */
fil_system_enter
();
fil_system_enter
();
btr_scrub_init
();
fil_crypt_threads_init
();
fil_crypt_threads_init
();
fil_system_exit
();
fil_system_exit
();
...
@@ -2739,9 +2740,6 @@ innobase_start_or_create_for_mysql()
...
@@ -2739,9 +2740,6 @@ innobase_start_or_create_for_mysql()
*/
*/
log_make_checkpoint_at
(
LSN_MAX
,
TRUE
);
log_make_checkpoint_at
(
LSN_MAX
,
TRUE
);
/* Init data for datafile scrub threads */
btr_scrub_init
();
/* Initialize online defragmentation. */
/* Initialize online defragmentation. */
btr_defragment_init
();
btr_defragment_init
();
btr_defragment_thread_active
=
true
;
btr_defragment_thread_active
=
true
;
...
...
storage/xtradb/btr/btr0scrub.cc
View file @
2000a900
...
@@ -886,17 +886,15 @@ btr_scrub_update_total_stat(btr_scrub_t *scrub_data)
...
@@ -886,17 +886,15 @@ btr_scrub_update_total_stat(btr_scrub_t *scrub_data)
memset
(
&
scrub_data
->
scrub_stat
,
0
,
sizeof
(
scrub_data
->
scrub_stat
));
memset
(
&
scrub_data
->
scrub_stat
,
0
,
sizeof
(
scrub_data
->
scrub_stat
));
}
}
/**
************************************************************//**
/**
Complete iterating a space.
Complete iterating a space
*/
@param[in,out] scrub_data scrub data
*/
UNIV_INTERN
UNIV_INTERN
bool
void
btr_scrub_complete_space
(
btr_scrub_complete_space
(
btr_scrub_t
*
scrub_data
)
/*=====================*/
btr_scrub_t
*
scrub_data
)
/*!< in/out: scrub data */
{
{
ut_ad
(
scrub_data
->
scrubbing
);
btr_scrub_table_close_for_thread
(
scrub_data
);
btr_scrub_table_close_for_thread
(
scrub_data
);
btr_scrub_update_total_stat
(
scrub_data
);
btr_scrub_update_total_stat
(
scrub_data
);
return
scrub_data
->
scrubbing
;
}
}
/*********************************************************************
/*********************************************************************
...
...
storage/xtradb/fil/fil0crypt.cc
View file @
2000a900
...
@@ -2127,7 +2127,8 @@ fil_crypt_complete_rotate_space(
...
@@ -2127,7 +2127,8 @@ fil_crypt_complete_rotate_space(
mutex_exit
(
&
crypt_data
->
mutex
);
mutex_exit
(
&
crypt_data
->
mutex
);
/* all threads must call btr_scrub_complete_space wo/ mutex held */
/* all threads must call btr_scrub_complete_space wo/ mutex held */
if
(
btr_scrub_complete_space
(
&
state
->
scrub_data
)
==
true
)
{
if
(
state
->
scrub_data
.
scrubbing
)
{
btr_scrub_complete_space
(
&
state
->
scrub_data
);
if
(
should_flush
)
{
if
(
should_flush
)
{
/* only last thread updates last_scrub_completed */
/* only last thread updates last_scrub_completed */
ut_ad
(
crypt_data
);
ut_ad
(
crypt_data
);
...
...
storage/xtradb/include/btr0scrub.h
View file @
2000a900
...
@@ -154,13 +154,10 @@ btr_scrub_start_space(
...
@@ -154,13 +154,10 @@ btr_scrub_start_space(
ulint
space
,
/*!< in: space */
ulint
space
,
/*!< in: space */
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
/****************************************************************
/** Complete iterating a space.
Complete iterating a space
@param[in,out] scrub_data scrub data */
* @return true if space was scrubbed */
UNIV_INTERN
UNIV_INTERN
bool
void
btr_scrub_complete_space
(
btr_scrub_complete_space
(
btr_scrub_t
*
scrub_data
);
/*=====================*/
btr_scrub_t
*
scrub_data
);
/*!< in/out: scrub data */
#endif
#endif
storage/xtradb/srv/srv0start.cc
View file @
2000a900
...
@@ -3115,12 +3115,10 @@ innobase_start_or_create_for_mysql()
...
@@ -3115,12 +3115,10 @@ innobase_start_or_create_for_mysql()
#endif
/* WITH_WSREP */
#endif
/* WITH_WSREP */
/* Create thread(s) that handles key rotation */
/* Create thread(s) that handles key rotation */
fil_system_enter
();
fil_system_enter
();
btr_scrub_init
();
fil_crypt_threads_init
();
fil_crypt_threads_init
();
fil_system_exit
();
fil_system_exit
();
/* Init data for datafile scrub threads */
btr_scrub_init
();
/* Initialize online defragmentation. */
/* Initialize online defragmentation. */
btr_defragment_init
();
btr_defragment_init
();
btr_defragment_thread_active
=
true
;
btr_defragment_thread_active
=
true
;
...
...
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