Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jun 2014 14:28:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191480] New: pkg version locks database too long
Message-ID:  <bug-191480-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191480

            Bug ID: 191480
           Summary: pkg version locks database too long
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Infrastructure
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: freebsd@nagilum.org

Doing something like "pkg version -vL'=' can take several minutes especially on
smaller devices. During the whole time the database is locked. This prevents
any port being installed or removed. 
What I think is happening is something like this:
pkg creates a read cursor on the database and then walks from entry to entry to
obtain the ports version through some make command.
What it could be doing instead (to prevent the long locks) is something like
this:
Take the output of the query that was use to create the cursor and put it in a
list then process that list as it did with results of the cursor.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191480-13>