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

Improper locking bugs due to the unreleased locks before program eixt

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.6.4
    • None
    • None
    • None
    • All

    Description

      Hi developers, in the below codes, the lock LOCK_thread_count could be not released before program's exit exit(1);. I think it is better to write pthread_mutex_unlock(&LOCK_thread_count); * before the *exit(1); for better resource management and code symmetry. Thanks!

      https://github.com/MariaDB/server/blob/57f14eab20ae2733eb341f3d293515a10a40bc48/storage/maria/unittest/ma_pagecache_single.c#L815-L823

      Attachments

        Activity

          People

            Unassigned Unassigned
            Ryan Ryan
            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.