[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Huh... BDB...?

From: Steinar Bang <sb_at_dod.no>
Date: Sun, 22 Feb 2009 19:02:40 +0100

>>>>> Steinar Bang <sb_at_dod.no>:

> After upgrading from debian etch to debian lenny, I tried my first
> subversion checkin today, and got the following message:

> svn: Commit failed (details follow):
> svn: Berkeley DB error for filesystem '/usr/local/svn/db' while opening environment:

> svn: DB_VERSION_MISMATCH: Database environment version mismatch
> svn: bdb: Program version 4.6 doesn't match environment version 4.4
[snip!]
> Anyway... what's done, is done. Now I need to figure out how to convert
> my existing BDB repo (still in BDB 4.4...?) to FSFS.

I found this bug report:
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466312
which tells me that
  svnadmin recover /usr/local/svn
should fix things.

And it did. Now it was possible to use the BDB-based repository.

> How can I find out exactly what version of BDB a repo is using? Is
> the setting in db/DB_CONFIG to be trusted?

Looks like it is. And the file to look in to determine whether a repo
actually is fsfs or bdb, is:
        db/fs-type

> And if it is in 4.4, is there some kind of utility that can extract
> it, and change it into something that can become an FSFS repo?

> Ie. will my svnadmin that requires BDB 4.6 be able to dump a BDB 4.4
> repo? And can I trust the results if it does?

After the "svnadmin recover" it worked fine to do a dump, and restore
into a new FSFS based repository, using the usual approach:
        http://subversion.tigris.org/faq.html#bdb-fsfs-convert

I don't have anything to check in right now, but a quick run of "svn
blame" and "svn log", and "svnmerge avail -l", seems to indicate that
all is well with the new fsfs repo.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1210195

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-22 19:04:22 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.