DbEnv::cdsgroup_begin API Ref

#include <db_cxx.h>

int DbEnv::cdsgroup_begin(DbTxn **tid);


Description: DbEnv::cdsgroup_begin

The DbEnv::cdsgroup_begin method allocates a locker ID in an environment configured for Berkeley DB Concurrent Data Store applications. It copies a pointer to a DbTxn that uniquely identifies the locker ID into the memory to which tid refers. Calling the DbTxn::commit method will discard the allocated locker ID.

See Berkeley DB Concurrent Data Store applications for more information about when this is required.

The DbEnv::cdsgroup_begin method may be called at any time during the life of the application.

The DbEnv::cdsgroup_begin method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.


Errors

If the maximum number of lockers has been reached, the DbEnv::cdsgroup_begin method will fail and either return ENOMEM or throw a DbMemoryException.



Class DbEnv, DbTxn
See Also Transaction Subsystem and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.