[Pkg-torrus-maintainers] Bug#476356: Bug#476356: After upgrade torrus fails with DB_VERSION_MISMATCH
Marc Haber
mh+debian-packages at zugschlus.de
Thu May 22 17:56:37 UTC 2008
tags #476356 - patch - upstream
thanks
On Thu, May 22, 2008 at 04:12:54PM +0200, Marc Haber wrote:
> On Mon, May 05, 2008 at 12:07:18PM +0200, Joerg Dorchain wrote:
> > Maybe the attached one line patch could help. To my understanding of
> > torrus, perl, and berkeley-db it should fix the bug without side
> > effects.
>
> I have forwarded this Upstream and will apply the patch if upstream
> agrees. I don't know enough about berkeley-db to judge this myself.
Upstream has rejected the patch since it will run recovery every time
a new process is started, breaking already running processes.
They instead suggest running db_recover unconditionally in the
postinst, which poses some challenge since one would have to find out
whether to recover and which db_recover to use.
I think the best idea would be doing this in perl, which has the
advantage of relying on libberkeleydb-perl to determine whether the
database can be opened, and to automatically use the correct lib to
recover.
The pseudocode would look like:
use BerkeleyDB;
<obtain path to database from torrus config>
if( database cannot be opened ) {
recover
}
if( database cannot be opened ) {
barf, cry and die
}
Unfortunately, I do neither have time nor expertise to do this myself
at the moment.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
More information about the Pkg-torrus-maintainers
mailing list