[Pkg-db-devel] Upgrade to db4.5 and #421954

Clint Adams schizo at debian.org
Fri Jul 27 12:37:28 UTC 2007


On Fri, Jul 27, 2007 at 01:54:28PM +0200, Nicolas Duboc wrote:
>   Indeed no transaction or logging but a spamprobe linked against db4.5
> can't write on a database created with spamprobe linked against db4.2 :
> 
>     ~% spamprobe -d test-spamprobe-db4.2 receive < email
>     error: unable to open environment test-spamprobe-db4.2-filled: DB_VERSION_MISMATCH: Database environment version mismatch
>     caught runtime exception: unable to open words database
> 
>   Read-only access works. But a large portion of spamprobe users use
> spamprobe commands that update the database when an email is scanned
> (spamprobe "receive" command for instance).
> 
> > For future reference, though, if you do need to upgrade the database,
> > the open will return DB_OLD_VERSION.  You can follow that up with a
> > DB->upgrade or equivalent.  In the past, it's not been a good idea to
> > do the upgrade unconditionally due to what is probably a memory leak.
> 
>   OK so that confirms my first thought that a debconf or NEWS.Debian
> notice when upgrading the package is the only solution.

Sorry, I wasn't paying enough attention; the database itself should be
fine, but you'll need to remove the database environment to avoid that
error.

You can quickly (and unsafely if other processes are using the db)
test this out by

rm test-spamprobe-db4.2/__db.??? test-spamprobe-db4.2/lock
spamprobe -d test-spamprobe-db4.2 receive < email

with the db4.5 version; I suspect it will work without complaint.



More information about the Pkg-db-devel mailing list