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

Re: svn commit: rev 5361 - trunk/subversion/mod_dav_svn

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-03-17 23:45:17 CET

Glenn A. Thompson wrote:

>>
>>
>> The on-disk slave copy isn't so awful, I guess, as long as it is
>> clearly marked as not the master. It ain't pretty, but as long as
>> there are automated protections against its getting out of date (plus
>> maybe a comment right in the file, explaining that it is not the
>> master), it's not so bad.
>>
>>
>>
> Ok, someone beat with the clue stick
>
>
> int DB_ENV->open(DB_ENV *, char *db_home, u_int32_t flags, int
> mode);
>
> This is the call in question. Why do me map Subversion ids onto
> this. The DB has to open something at db_home. How is that not
> unique enough to be the key?

db_home is the path to the BDB environment, and that's not a good unique
key.

> There is another issue at play here right?

ln, ln -s, mount --loopback, etc. etc. In general, neither the path to a
file, nor it's (devnum, inode) pair can be considered unique keys.

> Please, please clue me in.
>
> Programmatically speaking, if any BDB knowledge rises above the FS
> API. Let me go on record as being against it.

Yes, you've gone on record about that often. :-) And no, hopefully this
BDB knowledge would not poke its ugly head out of the BDB back-end layer.

-- 
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 Mar 17 23:48:05 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.