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

Re: Those pesky db/log.000000000... files

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-01-13 09:00:25 CET

Newton Hammet wrote:

>
> Hello Developers,
>
> I have downloaded configured and installed the latest svn
> (version0.16.1)
> and love it. I plan to use it for some websites I am maintaining for
> customers.
>
> I would like to know how to stop it from creating those 7 approx. 1M
> byte
> each log files in subdir db relative to the repository. Are those log
> files required
> to be present for the proper operation of 'svn'?

*ROTFL*

Sorry... Yes, you might say those files are necessary. They're Berkeley
DB's transaction log files, and if you just blindly delete them, you
have a pretty good chance of hosing your repository and destroying your
data.

> I have tried building svn both ways, with maintainer mode enabled and
> with
> it not enabled (via the configure script), and I still get an svn that
> wants to
> create those huge logfiles, about 7M worth per transaction.

7M per transaction? I don't think so.

> It would be nice if I could run a wrapper script around my svn scripts
> to delete
> them, or, better yet, is there an option or a way to not generate them?

You can write a post-commit hook that cleans up unneeded BDB logs. The
hot backup script (tools/backup/hot-backup.py in our sources) does that
as part of the backup process, IIRC. Read the documentation for
Berkeley DB's db_archive utility:
http://www.sleepycat.com/docs/utility/db_archive.html.

> I have built some test repositories and purposely archived a binary
> compressed
> tar file to the test repository, picked a byte and flipped it (XOR
> with 0xff) and
> updated the rep with the changed file.
>
> If I discount the creation of the log files I can see that this
> version control system
> is amazingly effecient in storage usage.

Heh, that's VDELTA doing its thing. Pretty cool, huh? :-)

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 13 09:01:10 2003

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

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