Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-21715

Allow loading buffer pool dumps for encrypted tablespaces

Details

    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;
      		}
      

      Attachments

        Issue Links

          Activity

            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.

            marko Marko Mäkelä added a comment - 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.

            People

              marko Marko Mäkelä
              jplindst Jan Lindström (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.