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

DROP TEMPORARY table is logged despite no CREATE was logged

Details

    Description

      commit c4bb7cd6dcd83a8c1dc15794d51cfacd10980855
      Date: Thu Mar 20 00:59:13 2014 +0200

      Fix for MDEV-5589: "Discrepancy in binlog on half-failed CREATE OR REPLACE"

      'added code for not logging DROP TEMPORARY TABLE for tables where the CREATE TABLE was not logged. '

      However the DROP query gets logged into binary log despite the fact of no CREATE was logged.

      --connect (one,...)
      set @@binlog_format=row;
      drop temporary table if exists tt;
      show binlog events; # =>
       
      | master-bin.000001 | 371 | Query             |         1 |         485 | use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `tt` |
      
      

      The connection close also create the DROP event in binlog.

      Attachments

        Issue Links

          Activity

            Elkin Andrei Elkin created issue -
            Elkin Andrei Elkin made changes -
            Field Original Value New Value
            Elkin Andrei Elkin made changes -
            Assignee Andrei Elkin [ elkin ]
            Elkin Andrei Elkin made changes -
            Component/s Replication [ 10100 ]
            Elkin Andrei Elkin made changes -
            Labels temporary-table-replication
            Elkin Andrei Elkin made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Assignee Andrei Elkin [ elkin ] Sujatha Sivakumar [ sujatha.sivakumar ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Affects Version/s 10.1 [ 16100 ]
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            issue.field.resolutiondate 2019-07-25 06:23:16.0 2019-07-25 06:23:16.822
            sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
            Fix Version/s 10.1.41 [ 23406 ]
            Fix Version/s 10.3.17 [ 23411 ]
            Fix Version/s 10.4.7 [ 23720 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 98333 ] MariaDB v4 [ 156492 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 180166

            People

              sujatha.sivakumar Sujatha Sivakumar (Inactive)
              Elkin Andrei Elkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.