Changed calls to disableLogging and enableLogging to work the way they used to.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@479 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -146,6 +146,7 @@ RCODE F_Db::beginTrans(
|
||||
RCODE rc = NE_SFLM_OK;
|
||||
SFLM_DB_HDR * pLastCommittedDbHdr;
|
||||
F_Rfl * pRfl = m_pDatabase->m_pRfl;
|
||||
FLMUINT uiRflToken = 0;
|
||||
FLMBOOL bMutexLocked = FALSE;
|
||||
|
||||
// Should not be calling on a temporary database
|
||||
@@ -375,6 +376,11 @@ RCODE F_Db::beginTrans(
|
||||
|
||||
if (!m_pDict)
|
||||
{
|
||||
if (eTransType != SFLM_READ_TRANS)
|
||||
{
|
||||
pRfl->disableLogging( &uiRflToken);
|
||||
}
|
||||
|
||||
if (RC_BAD( rc = readDictionary()))
|
||||
{
|
||||
goto Exit;
|
||||
@@ -388,6 +394,11 @@ Exit:
|
||||
m_pDatabase->unlockMutex();
|
||||
}
|
||||
|
||||
if( uiRflToken)
|
||||
{
|
||||
pRfl->enableLogging( &uiRflToken);
|
||||
}
|
||||
|
||||
if (eTransType != SFLM_READ_TRANS)
|
||||
{
|
||||
if (RC_OK( rc))
|
||||
|
||||
Reference in New Issue
Block a user