Berkeley DB: DB_ENV->cdsgroup_begin
Description: Berkeley DB: An embedded database programmatic toolkit.
Keywords: embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++

### DB_ENV->cdsgroup_begin |

`

###

    #include <db.h>

    int
    DB_ENV->cdsgroup_begin(DB_ENV *dbenv, DB_TXN **tid);

### Description: DB_ENV->cdsgroup_begin

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

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

The DB_ENV->cdsgroup_begin method may be called at any time during the life of the application.

The DB_ENV->cdsgroup_begin method returns a non-zero error value on failure and 0 on success.

### Errors

The DB_ENV->cdsgroup_begin method may fail and return one of the following non-zero errors:

ENOMEM
  The maximum number of lockers has been reached.

### Class

DB_ENV, DB_TXN

### See Also

Transaction Subsystem and Related Methods`

Copyright (c) 1996-2006 Oracle Corporation - All rights reserved.