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
Created attachment 318048 [details] rpm-4.4.2-db3-mismatch.patch
Blindly blasting away the environment (including the locks it might hold) is not at all the right thing to do.
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!