[Bug 191480] New: pkg version locks database too long
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jun 29 14:28:02 UTC 2014
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 at FreeBSD.org
Reporter: freebsd at 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.
More information about the freebsd-ports-bugs
mailing list