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

fil_crypt_must_default_encrypt() is being called even if ENCRYPTION=NO

    XMLWordPrintable

Details

    Description

      In fil_space_t::create() there is the following condition:

      	const bool rotate =
      		(purpose == FIL_TYPE_TABLESPACE
      		 && (mode == FIL_ENCRYPTION_ON
      		     || mode == FIL_ENCRYPTION_OFF || srv_encrypt_tables)
      		 && fil_crypt_must_default_encrypt());
      

      This code had been added in MDEV-14180. It looks like the condition

      mode == FIL_ENCRYPTION_OFF || srv_encrypt_tables

      had better be replaced with the following condition:

      mode == FIL_ENCRYPTION_DEFAULT && srv_encrypt_tables

      Attachments

        Issue Links

          Activity

            People

              thiru Thirunarayanan Balathandayuthapani
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.