equal
deleted
inserted
replaced
70 @param aSessionId The unique ID of session that is moving the state machine into a transaction state. |
70 @param aSessionId The unique ID of session that is moving the state machine into a transaction state. |
71 */ |
71 */ |
72 void CState::TransactionStartLC(TUint aSessionId) |
72 void CState::TransactionStartLC(TUint aSessionId) |
73 { |
73 { |
74 iCurrentTransactionSessionId = aSessionId; |
74 iCurrentTransactionSessionId = aSessionId; |
|
75 iPersistenceLayer.FactoryL().GetCollectorL().Reset(); |
75 iPersistenceLayer.TransactionManager().StartTransactionL(); |
76 iPersistenceLayer.TransactionManager().StartTransactionL(); |
76 CleanupStack::PushL(TCleanupItem(CState::CleanupTransactionRollback, this)); |
77 CleanupStack::PushL(TCleanupItem(CState::CleanupTransactionRollback, this)); |
77 } |
78 } |
78 |
79 |
79 /** |
80 /** |
1680 |
1681 |
1681 // Only one session can ever be in a transaction state |
1682 // Only one session can ever be in a transaction state |
1682 if (iSessionId == 0) |
1683 if (iSessionId == 0) |
1683 { |
1684 { |
1684 iSessionId = aRequest->SessionId(); |
1685 iSessionId = aRequest->SessionId(); |
|
1686 iPersistenceLayer.FactoryL().GetCollectorL().Reset(); |
1685 iPersistenceLayer.TransactionManager().StartTransactionL(); |
1687 iPersistenceLayer.TransactionManager().StartTransactionL(); |
1686 iTimeOut->Start(); |
1688 iTimeOut->Start(); |
1687 aRequest->Complete(); |
1689 aRequest->Complete(); |
1688 // Reset the event queue - although it is also reset when a transaction |
1690 // Reset the event queue - although it is also reset when a transaction |
1689 // is committed or explicitly rolled back, it will now be reset if a rollback occured |
1691 // is committed or explicitly rolled back, it will now be reset if a rollback occured |