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

svnadmin load doesn't checkpoint db

From: Blair Zajac <blair_at_orcaware.com>
Date: 2003-11-21 07:30:25 CET

After loading a repository, I think the database should be
checkpointed so that the old logs can be removed. However,
this doesn't appear to be the case.

I ran across this after loading my repos into a new 0.33.1
repository and tried to do an svnadmin hotcopy --clean-logs
to make a backup of the repository, but the repository didn't
get any smaller:

Using svnadmin 0.33.1 try this with any sized repos:

svnadmin create repos
svn co file://`pwd`/repos wc
cd wc
cp -p /lib/libc.so.6 .
svn add libc.so.6
svn ci -m ''
cd ..
svnadmin list-dblogs repos
        repos/db/log.0000000001
        repos/db/log.0000000002
svnadmin list-unused-dblogs repos
        # shows nothing
svnadmin dump repos > repos.dump
svnadmin create repos1
svnadmin load repos1 < repos.dump
svnadmin list-unused-dblogs repos1
        # shows nothing
cd repos1/db/
db_checkpoint -1
svnadmin list-unused-dblogs repos1
        repos1/db/log.0000000001

I'm guessing it's safe to run db_checkpoint -1 manually?

Best,
Blair

--
Blair Zajac <blair@orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 21 07:31:03 2003

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