subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Berger <>
Subject How to recreate rep-cache.db if it wasn't writable for some time ?
Date Thu, 16 Jan 2014 14:08:59 GMT
(please CC: me as not subscribed)


The bug report "rep-cache.db created without group write bit" [0] seems
to be on the way of being solved (AFAIU, the fix isn't released yet).

So, until then, for new repositories where no commit was made, a workaround
is to create (touch) the file before the first commit.

But if commits have been made already, as the file was created with
wrong permissions, there are chances that some commits are missing.

I cannot seem to find a reference to a repair solution to recreate the
contents of the DB cache (svnadmin recover doesn't address it AFAICT).

The document at [1] mentions that "This file is only consulted during
writes and never during reads.  Consequently, it is not required, and
may be removed at an abritrary time, with the subsequent loss of
rep-sharing capabilities for revisions written thereafter."  But AFAIU,
if the file is removed, it gets recreated anyway, staring from the next
commit, unless enable-rep-sharing = false...

So I'm wondering : if the file is incomplete, is there a risk ? And
if not, how may we recreate the contents of the cache ?

It seems that the algorithm would be quite simple from reading [1], but
that's beyond my capacity investigating SVN internals, I'm afraid.

Thanks in advance.

Best regards,

Olivier BERGER - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)

View raw message