Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.29
    • None

    Description

      Add the thd_kill_statement service that provides read access to the thd->killed flag.

      This service will obsolete thd_killed() from the plugin.h, we'll remove this declaration, but keep the function in the sql_class.cc until the text major plugin API version change.

      The service can look like this:

      enum thd_kill_levels {
        THD_IS_NOT_KILLED=0,
        THD_ABORT_SOFTLY=50, /**< abort when possible, don't leave tables corrupted */
        THD_ABORT_ASAP=100, /**< abort asap */
      };
       
      #define thd_killed(THD)   (thd_kill_level(THD) == THD_ABORT_ASAP)
       
      enum thd_kill_levels thd_kill_level(const MYSQL_THD);

      it maps the internal bitmap of various kill states into few levels that a plugin needs to care about.

      Attachments

        Activity

          serg Sergei Golubchik created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          serg Sergei Golubchik made changes -
          Description Add the thd_kill_statement service that provides read access to the thd->killed flag. Add the thd_kill_statement service that provides read access to the thd->killed flag.

          This service will obsolete thd_killed() from the plugin.h, we'll remove this declaration, but keep the function in the sql_class.cc until the text major plugin API version change.

          The service can look like this:
          {code}
          enum thd_kill_levels {
            THD_IS_NOT_KILLED=0,
            THD_ABORT_SOFTLY=50, /**< abort when possible, don't leave tables corrupted */
            THD_ABORT_ASAP=100, /**< abort asap */
          };

          #define thd_killed(THD) (thd_kill_level(THD) == THD_ABORT_ASAP)

          enum thd_kill_levels thd_kill_level(const MYSQL_THD);
          {code}

          it maps the internal bitmap of various kill states into few levels that a plugin needs to care about.
          serg Sergei Golubchik made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          serg Sergei Golubchik made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 25942 ] MariaDB v2 [ 45064 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 45064 ] MariaDB v3 [ 65650 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 65650 ] MariaDB v4 [ 132058 ]

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.