[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: Enrique Perez-Terron <enrio_at_online.no>
Date: 2004-08-16 22:51:32 CEST

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.

Could I have misunderstood anything?

Regards,
Enrique

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 16 22:51:58 2004

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