[MDEV-21715] Allow loading buffer pool dumps for encrypted tablespaces Created: 2020-02-12  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Encryption, Storage Engine - InnoDB
Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Marko Mäkelä
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12610 MariaDB start is slow Closed

 Description   

loading buffer pool dumps is not working for encrypted tablespaces

		/* JAN: TODO: As we use background page read below,
		if tablespace is encrypted we cant use it. */
		if (space == NULL ||
		   (space && space->crypt_data &&
		    space->crypt_data->encryption != FIL_ENCRYPTION_OFF &&
		    space->crypt_data->type != CRYPT_SCHEME_UNENCRYPTED)) {
			continue;
		}



 Comments   
Comment by Marko Mäkelä [ 2020-02-12 ]

I suspect that the code must have been a work-around for something that had been fixed in MDEV-12610.
In MariaDB 10.2, fil_node_open_file() computes the local variable first_time_open and will read the encryption metadata when reading the first page for other reasons. In 10.1, the code looks a bit different, but I think that the logic should be compatible.

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