Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear all threads query cache when a connection is pinned
Ref: Shopify/maintenance_tasks#983 (comment) Ref: #51151 Now that query caches are owned by the pool, and assigned on connections during checkout, when running multithreaded code inside transactional tests (typically system tests), the two threads uses the same connection but not the same cache. So it's important that we do clear the caches for all threads when a connection is pinned.
- Loading branch information
Showing
2 changed files
with
42 additions
and
1 deletion.
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