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

Re: HP-UX failures

From: Branko Čibej <branko.cibej_at_hermes.si>
Date: 2002-04-18 22:03:31 CEST

Turns out this is a faq:

=====================
*An ENOMEM error is returned from DB_ENV->open
<http://www.sleepycat.com/docs/api_c/env_open.html> or DB_ENV->remove
<http://www.sleepycat.com/docs/api_c/env_remove.html> .*

Due to the constraints of the PA-RISC memory architecture, HP-UX does
not allow a process to map a file into its address space multiple times.
For this reason, each Berkeley DB environment may be opened only once by
a process on HP-UX; that is, calls to DB_ENV->open
<http://www.sleepycat.com/docs/api_c/env_open.html> will fail if the
specified Berkeley DB environment has been opened and not subsequently
closed.

=====================

Opening an environment more than once is exactly what we do in
svn_ral_local__split_URL. We either have to get rid of that function,
keep a list of currently open DB's around, or not work on HP-UX.

(Actually, since we don't support cross-repository copies, we knoy have
to remember the URL of the laready-open repo. Which makes sense, because
then we can just do a strncmp on the URL next time we try to open it,
instead of jumping through hoops the way we do now.)

-- 
Branko Čibej                 <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49     fax: (+386 1) 586 52 70
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 18 22:04:32 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.