Bug 464752

Summary: RFE: Proposed patch to automates removal of a Berkeley DB dbenv when DB_VERSION_MISMATCH or EINVAL is returned
Product: Red Hat Enterprise Linux 5 Reporter: Elia Pinto <yersinia.spiros>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED WONTFIX QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: herrold, jan.kratochvil, n3npq
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-18 14:35:20 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 Flags
rpm-4.4.2-db3-mismatch.patch none

Description Elia Pinto 2008-09-30 08:46:23 UTC
Description of problem:

This patch automates removal of a Berkeley DB dbenv when
DB_VERSION_MISMATCH or EINVAL is returned.

Version-Release number of selected component (if applicable):

rpm-4.4.2-48.el5


Additional info:

Patch included

Comment 1 Elia Pinto 2008-09-30 08:47:14 UTC
Created attachment 318048 [details]
rpm-4.4.2-db3-mismatch.patch

Comment 2 Panu Matilainen 2009-03-18 14:35:20 UTC
Blindly blasting away the environment (including the locks it might hold) is not at all the right thing to do.

Comment 3 Jeff Johnson 2009-03-27 12:18:46 UTC
Testing the return code DB_VERSION_MISMATCH and automating
the recommended action, removal of the dbenv file, is hardly
"blinding blasting away the environment".

But YMMV, have fun!