Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-5041

TempTable engine temp tables bump Tmp_disk_tables slow log counter?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0, Not 5.5, Not 5.6, Not 5.7
    • Fix Version/s: 8.0.13-3
    • Component/s: None
    • Labels:

      Description

      By code review, in sql_tmp_table.cc:free_tmp_table:

          if (entry->file->ht->db_type != DB_TYPE_HEAP) thd->tmp_tables_disk_used++;
      

      Since there is no

      && ... db_type != DB_TYPE_TEMPTABLE

      , it is likely that TempTable temp tables are incorrectly counted as disk-based ones in the extended slow query log.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                laurynas.biveinis Laurynas Biveinis
                Reporter:
                laurynas.biveinis Laurynas Biveinis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: