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

[PATCH] MYSQL_BIN_LOG::write_incident failing to release LOCK_log

    Details

      Description

      sql/log.cc

      MYSQL_BIN_LOG::write_incident
       
        mysql_mutex_lock(&LOCK_log);
        if (likely(is_open()))
              ...
              mysql_mutex_unlock(&LOCK_log);
        }
        DBUG_RETURN(error);
       

      There is no mysql_mutex_unlock(LOCK_log) in the !likely(is_open()) if branch. It seems the caller of this function doesn't release it either.

        Attachments

          Activity

            People

            • Assignee:
              knielsen Kristian Nielsen
              Reporter:
              danblack Daniel Black
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: