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

Re: can't create valid repositry

From: shivaken <shivaken_at_jcom.home.ne.jp>
Date: 2002-12-17 14:10:28 CET

Hi, this is Result.

# ls -lR
/tmp/foo:
total 8
-rw-r--r-- 1 root root 376 Dec 16 19:35 README
drwxr-xr-x 2 root root 40 Dec 16 19:35 conf
drwxr-xr-x 2 root root 40 Dec 16 19:35 dav
drwxr-xr-x 2 root root 320 Dec 16 19:35 db
-rw-r--r-- 1 root root 2 Dec 16 19:35 format
drwxr-xr-x 2 root root 180 Dec 16 19:35 hooks
drwxr-xr-x 2 root root 60 Dec 16 19:35 locks

/tmp/foo/conf:
total 0

/tmp/foo/dav:
total 0

/tmp/foo/db:
total 744
-rw-r--r-- 1 root root 1182 Dec 16 19:35 DB_CONFIG
-rw-r--r-- 1 root root 8192 Dec 16 19:35 __db.001
-rw-r--r-- 1 root root 270336 Dec 16 19:35 __db.002
-rw-r--r-- 1 root root 327680 Dec 16 19:35 __db.003
-rw-r--r-- 1 root root 712704 Dec 16 19:35 __db.004
-rw-r--r-- 1 root root 16384 Dec 16 19:35 __db.005
-rw-r--r-- 1 root root 8192 Dec 16 19:35 changes
-rw-r--r-- 1 root root 8192 Dec 16 19:35 copies
-rw-r--r-- 1 root root 64922 Dec 16 19:36 log.0000000001
-rw-r--r-- 1 root root 8192 Dec 16 19:35 nodes
-rw-r--r-- 1 root root 8192 Dec 16 19:35 representations
-rw-r--r-- 1 root root 8192 Dec 16 19:35 revisions
-rw-r--r-- 1 root root 8192 Dec 16 19:35 strings
-rw-r--r-- 1 root root 8192 Dec 16 19:35 transactions

/tmp/foo/hooks:
total 28
-rw-r--r-- 1 root root 1286 Dec 16 19:35 post-commit.tmpl
-rw-r--r-- 1 root root 1474 Dec 16 19:35
post-revprop-change.tmpl
-rw-r--r-- 1 root root 1639 Dec 16 19:35 pre-commit.tmpl
-rw-r--r-- 1 root root 1952 Dec 16 19:35
pre-revprop-change.tmpl
-rw-r--r-- 1 root root 98 Dec 16 19:35 read-sentinels.tmpl
-rw-r--r-- 1 root root 1377 Dec 16 19:35 start-commit.tmpl
-rw-r--r-- 1 root root 100 Dec 16 19:35 write-sentinels.tmpl

/tmp/foo/locks:
total 4
-rw-r--r-- 1 root root 460 Dec 16 19:35 db.lock

# db_dump -da /tmp/foo/db/revisions
In-memory DB structure:
recno: 0x20060 (default page size, read-only, DB->open called)
bt_meta: 0 bt_root: 1
bt_maxkey: 0 bt_minkey: 2
bt_compare: 0x400383d7 bt_prefix: 0x4003846c
bt_lpgno: 0
re_pad: 0x20 re_delim: 0xa re_len: 0 re_source:
re_modified: 0 re_eof: 1 re_last: 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
page 0: btree metadata level: 0 (lsn.file: 1 lsn.offset: 13145)
        magic: 0x53162
        version: 8
        pagesize: 4096
        type: 9
        keys: 0 records: 0
        free list: 0
        last_pgno: 1
        flags: 0x2 (recno)
        uid: 51 96 0 0 f 0 0 0 75 ac fd 3d c9 d9 1 0 0 0 0 0
        maxkey: 0 minkey: 2
        re_len: 0 re_pad: 32
        root: 1
page 1: recno leaf level: 1 records: 0 (lsn.file: 1 lsn.offset: 13193)
        prev: 0 next: 0 entries: 0 offset: 4096

# db_dump -da /tmp/foo/db/nodes
In-memory DB structure:
btree: 0x20060 (default page size, read-only, DB->open called)
bt_meta: 0 bt_root: 1
bt_maxkey: 0 bt_minkey: 2
bt_compare: 0x400383d7 bt_prefix: 0x4003846c
bt_lpgno: 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
page 0: btree metadata level: 0 (lsn.file: 1 lsn.offset: 4398)
        magic: 0x53162
        version: 8
        pagesize: 4096
        type: 9
        keys: 0 records: 0
        free list: 0
        last_pgno: 1
        flags: 0
        uid: 50 96 0 0 f 0 0 0 75 ac fd 3d 29 53 0 0 0 0 0 0
        maxkey: 0 minkey: 2
        root: 1
page 1: btree leaf level: 1 (lsn.file: 1 lsn.offset: 4446)
        prev: 0 next: 0 entries: 0 offset: 4096

Berkeley DB is 4.0.14. Is 4.0.24 needed?

Regards.

-- shivaken

On Monday 16 December 2002 23:25, you wrote:
> shivaken <shivaken@jcom.home.ne.jp> writes:
> > $ svnadmin create foo
> > $ svnlook youngest foo
> > svn: Filesystem is corrupt
> > svn: revision 0 missing from `revisions' table, in filesystem `foo/db'
> > # svn co file:///tmp/foo wc
> > svn: Filesystem is corrupt
> > svn: revision 0 missing from `revisions' table, in filesystem
> > `/tmp/foo/db'
>
> Thanks for the thorough bug report.
>
> Yeah, this behavior is certainly wrong. I can't reproduce it, by the
> way. Please do
>
> ls -lR /tmp/foo
>
> and
>
> db_dump -da /tmp/foo/db/revisions
> db_dump -da /tmp/foo/db/nodes
>
> ...where `db_dump' is the right version of Berkeley DB 4.0.24's dump.
> For example, on my system, that's
>
> /usr/local/BerkeleyDB.4.0/bin/db_dump -da /tmp/foo
>
> Thanks,
> -Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 17 13:59:37 2002

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.