[MDEV-16159] Use atomic memory access for purge_sys Created: 2018-05-14  Updated: 2018-05-16  Resolved: 2018-05-16

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Fix Version/s: 10.3.7

Type: Task Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: performance, race

Issue Links:
Relates
relates to MDEV-11802 innodb.innodb_bug14676111 fails in bu... Closed
relates to MDEV-13987 Hang in FLUSH TABLES…FOR EXPORT Closed

 Description   

This refactoring is motivated by MDEV-13987 and MDEV-11802.

The variables purge_sys.state and purge_sys.running are sometimes being read without proper protection, and sometimes read while unnecessarily holding purge_sys.latch exclusively. It is cleaner to use a combination of purge_sys.latch and atomic memory access for writes, so that reads can use either protection.


Generated at Thu Feb 08 08:26:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.