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

Re: [PATCH] Support both BDB 4.0 and 4.1

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-10-21 21:54:20 CEST

Glenn A. Thompson wrote:

>
>
>>meter in SVN_BDB_OPEN_PARAMS. Pass the
>>SVN_BDB_AUTO_COMMIT flag to DB->open and DB->put wherever the transaction
>>is NULL. Check the BDB version before each call to db_create.
>>v-help@subversion.tigris.org
>>
>>
>
>Hey,
>
>I was reading up on the DB_AUTO_COMMIT flag.
>It seems to imply that the created transaction is commited after the command. Is that
>true?
>I couldn't find where it said that explicitly.
>Anyone care to point me in the right direction?
>
>
It's discussed in the docs for the various DB calls (DB->open, etc):

DB_AUTO_COMMIT
    Enclose the DB->open call within a transaction. If the call
    succeeds, the open operation will be recoverable. If the call fails,
    no database will have been created.

The fact that a failed call won't change anything in the database, and
that a successful call will be recoverable, implies that the transaction
is either committed (and checlpointed), or aborted.

-- 
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 Oct 21 21:55:05 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.