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

Re: Berkeley DB fails creating a new repository, "invalid argument"

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-08-17 01:14:50 CEST

Enrique Perez-Terron wrote:
> On Mon, 2004-08-16 at 21:56, Enrique Perez-Terron wrote:
>> # rm -rf /home-4/subversion
>> # svnadmin create /home-4/subversion
>> svn: Berkeley DB error while creating environment for filesystem
>> /home-4/subversion/db: Invalid argument
>
>
> I have found the following code in db-4.2.52/env/env_open.c (with line
> numbers):
>
> 139 #ifdef HAVE_MUTEX_THREAD_ONLY
> 140 if (!LF_ISSET(DB_PRIVATE)) {
> 141 __db_err(dbenv,
> 142 "Berkeley DB library configured to support only DB_PRIVATE
> environments"); 143 return (EINVAL);
> 144 }
> 145 #endif
>
> I have then checked if the string shown appears in the relevant
> libraries, and it does. That indicates that my copy of db4 was compiled
> with -DHAVE_MUTEX_THREAD_ONLY. This will make env_open() fail with
> EINVAL unless called with DB_PRIVATE.
>
> I will subsequently check if it works to set the DB_PRIVATE flag in the
> call to env_open(), but actually, I do not (yet) understand the
> implications of doing so.

The implications of doing so are that only one process can access a
repository at a time. And I don't know whether an attempt at multiple access
will fail gracefully, or corrupt the repository.

Read:
http://www.contactor.se/~dast/svnusers/archive-2004-07/1717.shtml
for more info.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 17 01:16:24 2004

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

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