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

plugin ha_connect, file_type=DBF DELETE fails

    XMLWordPrintable

Details

    Description

      @@version: 11.0.2-MariaDB

      like MDEV-31625 but different:

      There's a problem still in the deletes aren't affecting the file format correctly (though SQL seems to cope).

      MariaDB [test]>  insert into t1 values (4),(3),(2),(1);
       
      $ od --endian=big -x /tmp/build-mariadb-server-10.4-datadir/test/t1.dbf 
      0000000 037b 070b 0400 0000 4200 0c00 0000 0000
      0000020 0000 0000 0000 0000 0000 0000 0000 0000
      0000040 6100 0000 0000 0000 0000 004e 0000 0000
      0000060 0b00 0000 0000 0000 0000 0000 0000 0000
      0000100 0d00 2020 2020 2020 2020 2020 2034 2020
      0000120 2020 2020 2020 2020 2033 2020 2020 2020
      0000140 2020 2020 2032 2020 2020 2020 2020 2020
      0000160 2031 1a00
      0000163
      

      MariaDB [test]> delete from t1 where a=1;
       
      $ od --endian=big -x /tmp/build-mariadb-server-10.4-datadir/test/t1.dbf 
      0000000 037b 070b 0400 0000 4200 0c00 0000 0000
      0000020 0000 0000 0000 0000 0000 0000 0000 0000
      0000040 6100 0000 0000 0000 0000 004e 0000 0000
      0000060 0b00 0000 0000 0000 0000 0000 0000 0000
      0000100 0d00 2020 2020 2020 2020 2020 2034 2020
      0000120 2020 2020 2020 2020 2033 2020 2020 2020
      0000140 2020 2020 2032 2a20 2020 2020 2020 2020
      0000160 2031 1a00
      0000163
      

      offset 0146 is different.

      The record isn't deleted, its still there. The Number of records in the header isn't updated.

      libreoffice thinks the file is now corrupted (though does a decent recovery job).

      Attachments

        Issue Links

          Activity

            People

              anel Anel Husakovic
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.