Bug 103674
Summary: | fcntl database locking doesn't work | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Schröder <mls> | ||||
Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | GinGin64 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-09-15 03:22:42 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michael Schröder
2003-09-03 19:11:05 UTC
Created attachment 94176 [details]
proposed patch
Yup. The more general question is: Does SuSE need fcntl exclusive locking? The concurrent locking is reliable and sufficient (for rpmdb, install/erase locking is different problem) afaict, and I'd like to eliminate legacy code. Good question. The current code selects it as we don't have nptl. "unshared posix mutexes found, adding DB_PRIVATE, using fcntl lock" This is a run time test for nptl in rpmdb/db3.c. If you don't have nptl, then you should eliminate the test, and compile without --enable-posixmutexes (2 occurences, autogen.sh and rpm.spec). You will lose unified thread/process locks but that should not mattter, the CDB locks will work fine. Uh, this *is still* a bug. If you really think it isn't you should throw out the fcntl locking code, because it doesn't work. Yes, fcntl locking is being phased out. And the real bug is that reopening O_RDWR opens a locking window, not anything else. |