Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Dbc::get() has no need to commit ?

529558Aug 25 2006 — edited Aug 30 2006
m_pEvironment->txn_begin (NULL,&m_pTransaction,0);
nRes=m_pDb->cursor (m_pTransaction,&m_pCursor,0);
try
{
Dbt dbKey;
Dbt dbData;
int nRes;
dbKey.set_flags (DB_DBT_MALLOC);
dbData.set_flags (DB_DBT_MALLOC);

nRes=m_pCursor->get (&dbKey,&dbData,DB_NEXT);
m_pTransaction->commit (0); // <---------exception catched ,jump to catch() block.
// Dbc::get() is one of a access operation ,in theory it need a commitment.
}
catch (DbException &dbe)
{

}

sorry to disturb you as I really have no information to refer to.

Comments

Mika14

check to make sure your /etc/hosts file is correct

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 27 2006
Added on Aug 25 2006
1 comment
1,021 views