-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS-9148 feature: Dictionary caching for Masking Functions Component (8.0) #5520
Open
percona-ysorokin
wants to merge
19
commits into
percona:8.0
Choose a base branch
from
percona-ysorokin:dev/PS-9148-8.0-masking_functions_background_thread
base: 8.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,971
−788
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
e3ecad8
Temporarily partially reverted the fix for PS-9453
percona-ysorokin f080a9f
Bug#34741098 component::deinit() will block if calling any registry
0566c19
Re-applied temporarily partially reverted fix for PS-9453
percona-ysorokin 67566d3
PS-9551 fix: Setting MYSQL_COMMAND_LOCAL_THD_HANDLE may crash the server
percona-ysorokin fc9a1a5
PS-9537 fix: Existing connection cannot be reused to run multiple que…
percona-ysorokin 0bcfea3
PS-9148 feature: Add caching of dictionary table for component_maskin…
oleksandr-kachan 31d003f
PS-9148 feature: Add masking_functions.masking_database sys var support
oleksandr-kachan 53399fd
PS-9148 feature: Implement dictionary flusher for masking_functions p…
oleksandr-kachan b41825b
PS-9148 feature: Implemented hierarchical storage for dictionaries an…
percona-ysorokin 12f669f
PS-9148 feature: Minor refactoring to break dependencies
percona-ysorokin e523e24
PS-9148 feature: Refactored usage of std::string_view for c-interfaces
percona-ysorokin f746c32
PS-9148 feature: Implemented lazy query_cache initial population
percona-ysorokin 83323b4
PS-9148 feature: Reworked dictionary / bookshelf thread-safety model
percona-ysorokin a1a164d
PS-9148 feature: Fix masking functions flusher thread intialization
oleksandr-kachan 1b76894
PS-9148 feature: Decoupled threading and caching functionality in que…
percona-ysorokin dc9907a
PS-9148 feature: Refactored dictionary_flusher_thread
percona-ysorokin 57594b0
PS-9148 feature: Improved diagnostics (MySQL API error messages) in s…
percona-ysorokin e04feb2
PS-9148 feature: Refactored to avoid deadlock during UNINSTALL COMPONENT
percona-ysorokin db12fad
PS-9148 feature: Refactored dictionary flusher thread startup / termi…
percona-ysorokin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ | |
#include "dynamic_loader_scheme_file_imp.h" | ||
#include "minimal_chassis_runtime_error_imp.h" | ||
#include "registry_imp.h" | ||
#include "registry_no_lock_imp.h" | ||
|
||
extern SERVICE_TYPE(registry) imp_mysql_minimal_chassis_registry; | ||
|
||
|
@@ -58,10 +59,21 @@ BEGIN_SERVICE_IMPLEMENTATION(mysql_minimal_chassis, registry) | |
mysql_registry_imp::acquire, mysql_registry_imp::acquire_related, | ||
mysql_registry_imp::release END_SERVICE_IMPLEMENTATION(); | ||
|
||
BEGIN_SERVICE_IMPLEMENTATION(mysql_minimal_chassis_no_lock, registry) | ||
mysql_registry_no_lock_imp::acquire, | ||
mysql_registry_no_lock_imp::acquire_related, | ||
mysql_registry_no_lock_imp::release END_SERVICE_IMPLEMENTATION(); | ||
|
||
BEGIN_SERVICE_IMPLEMENTATION(mysql_minimal_chassis, registry_registration) | ||
mysql_registry_imp::register_service, mysql_registry_imp::unregister, | ||
mysql_registry_imp::set_default END_SERVICE_IMPLEMENTATION(); | ||
|
||
BEGIN_SERVICE_IMPLEMENTATION(mysql_minimal_chassis_no_lock, | ||
registry_registration) | ||
mysql_registry_no_lock_imp::register_service, | ||
mysql_registry_no_lock_imp::unregister, | ||
mysql_registry_no_lock_imp::set_default END_SERVICE_IMPLEMENTATION(); | ||
|
||
BEGIN_SERVICE_IMPLEMENTATION(mysql_minimal_chassis, registry_query) | ||
mysql_registry_imp::iterator_create, mysql_registry_imp::iterator_get, | ||
mysql_registry_imp::iterator_next, mysql_registry_imp::iterator_is_valid, | ||
|
@@ -110,7 +122,9 @@ mysql_runtime_error_imp::emit END_SERVICE_IMPLEMENTATION(); | |
|
||
BEGIN_COMPONENT_PROVIDES(mysql_minimal_chassis) | ||
PROVIDES_SERVICE(mysql_minimal_chassis, registry), | ||
PROVIDES_SERVICE(mysql_minimal_chassis_no_lock, registry), | ||
PROVIDES_SERVICE(mysql_minimal_chassis, registry_registration), | ||
PROVIDES_SERVICE(mysql_minimal_chassis_no_lock, registry_registration), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
PROVIDES_SERVICE(mysql_minimal_chassis, registry_query), | ||
PROVIDES_SERVICE(mysql_minimal_chassis, registry_metadata_enumerate), | ||
PROVIDES_SERVICE(mysql_minimal_chassis, registry_metadata_query), | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use const_cast