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

Documentation says keep_files_on_create is deprecated, but there is no deprecation warning

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      The documentation says that keep_files_on_create variable was deprecated in 10.8, but it doesn't seem to be the case. It still can be used and works without any warnings, both as a startup option and at runtime, in the current main branch (which is 13.0 at the time of writing).

      create table t (a int) engine=MyISAM;
      flush tables;
      --remove_file $MARIADB_DATADIR/test/t.frm
      set keep_files_on_create = ON;
      --error 1
      create or replace table t (a int) engine=MyISAM;
       
      --let $restart_parameters = --keep_files_on_create=ON
      --source include/restart_mysqld.inc
       
      --error 1
      create or replace table t (a int) engine=MyISAM;
       
      --let SEARCH_FILE=$MYSQLTEST_VARDIR/log/mysqld.1.err
      --let SEARCH_PATTERN= deprecated
      --source include/search_pattern_in_file.inc
      

      main d2803e117b15b2868a65e6289d3a4e77b891c2dd

      create table t (a int) engine=MyISAM;
      flush tables;
      set keep_files_on_create = ON;
      create or replace table t (a int) engine=MyISAM;
      ERROR HY000: Can't create/write to file '/dev/shm/var_auto_Z0Kh/mysqld.1/data/test/t.MYI' (Errcode: 17 "File exists")
      # restart: --keep_files_on_create=ON
      create or replace table t (a int) engine=MyISAM;
      ERROR HY000: Can't create/write to file '/dev/shm/var_auto_Z0Kh/mysqld.1/data/test/t.MYI' (Errcode: 17 "File exists")
      NOT FOUND /deprecated/ in mysqld.1.err
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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