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

Re: svn commit: r27745 - in trunk/subversion: include libsvn_fs_base libsvn_fs_base/bdb

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2007-11-12 19:29:22 CET

Daniel Rall wrote:
> On Sat, 10 Nov 2007, Vlad Georgescu wrote:
>
>> cmpilato@tigris.org wrote:
>>> Author: cmpilato
>>> Date: Fri Nov 9 12:59:25 2007
>>> New Revision: 27745
>>>
>>> Log:
>>> Add new 'node-origins' table, which is an index mapping node IDs ->
>>> origin node revision IDs, for BDB-backed repositories.
>>> [...]
>>> * subversion/libsvn_fs_base/fs.c
>>> (cleanup_fs): Cleanup the `node-origins' table.
>>> (open_databases): Open (or create) the `node-origins' table.
>>> (base_hotcopy): Copy the `node-origins' table.
>>> [...]
>> This is in base_hotcopy():
>>
>>> @@ -1085,6 +1094,8 @@
>>> "locks", pagesize, pool));
>>> SVN_ERR(copy_db_file_safely(src_path, dest_path,
>>> "lock-tokens", pagesize, pool));
>>> + SVN_ERR(copy_db_file_safely(src_path, dest_path,
>>> + "node-origins", pagesize, pool));
>>>
>> If you hotcopy a repo that doesn't yet have a node-origins table, won't
>> this cause an error?
>
> Yup, unless something creates the node-origins table before
> base_hotcopy() fires (e.g. if opening the database does so).
> svn_io_file_open() will choke opening src_path/"node-origins".

Thanks, guys. I'll look into this.

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Mon Nov 12 19:29:33 2007

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.