--- a/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Thu Jul 01 17:02:22 2010 +0100
+++ b/persistentstorage/sql/SRC/Client/SqlDbSession.cpp Tue Jul 06 11:54:49 2010 +0100
@@ -23,6 +23,11 @@
#include "SqlSrvStartup.h" //StartSqlServer()
#include "SqlResourceTest.h" //TSqlResourceTestData
#include "SqlSecurityImpl.h" //CSqlSecurityPolicy
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "SqlDbSessionTraces.h"
+#endif
+#include "SqlTraceDef.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////// TSqlFhCmdFunctor ///////////////////////////////////////////////
@@ -196,8 +201,8 @@
TPtr8 bufPtr = buf->Des();
RDesWriteStream out(bufPtr);
TRAPD(err, SerializeToStreamL(out));
- __SQLASSERT(err == KErrNone, ESqlPanicInternalError);//"Write to descriptor" streaming operatons can't fail
- TUint32 arg0 = (TUint32)bufPtr.Length() | (aReadOnly ? 0x80000000 : 0);
+ __ASSERT_DEBUG(err == KErrNone, __SQLPANIC(ESqlPanicInternalError));//"Write to descriptor" streaming operatons can't fail
+ TUint32 arg0 = (TUint32)bufPtr.Length() | (aReadOnly ? 0x80000000 : 0);
TIpcArgs ipcArgs(arg0, &bufPtr);
err = aDbFile.TransferToServer(ipcArgs, 2, 3);
if(err == KErrNone)
@@ -301,6 +306,7 @@
*/
TInt RSqlDbSession::Connect(TSqlSrvFunction aFunction, const TDesC& aDbFileName, const TDesC8& aSecurityPolicyData, const TDesC8* aConfig)
{
+ SQL_TRACE_SESSION(OstTraceExt2(TRACE_INTERNALS, RSQLDBSESSION_CONNECT_ENTRY, "Entry;0x%X;RSqlDbSession::Connect;aDbFileName=%S", (TUint)this, __SQLPRNSTR(aDbFileName)));
#ifdef SYSLIBS_TEST
const TInt KDefaultMsgBufLen = 4;
#else
@@ -358,6 +364,7 @@
{
Close();
}
+ SQL_TRACE_SESSION(OstTraceExt3(TRACE_INTERNALS, RSQLDBSESSION_CONNECT_EXIT, "Exit;0x%X;RSqlDbSession::Connect;err=%d;handle=0x%X", (TUint)this, err, (TUint)Handle()));
return err;
}
@@ -650,6 +657,7 @@
*/
void RSqlDbSession::Close()
{
+ SQL_TRACE_SESSION(OstTraceExt2(TRACE_INTERNALS, RSQLDBSESSION_CLOSE, "0x%X;RSqlDbSession::Close;handle=0x%X", (TUint)this, (TUint)Handle()));
if(Handle())
{
(void)SendReceive(ESqlSrvDbClose);
@@ -848,7 +856,7 @@
{
//coverity[DEADCODE]
//The ASSERT might be useful in catching future defect in this function
- __SQLASSERT(aConfig != NULL, ESqlPanicInternalError);
+ __ASSERT_DEBUG(aConfig != NULL, __SQLPANIC(ESqlPanicInternalError));
arg3Ptr.Append(*aConfig);
}
ipcArgs.Set(3, &arg3Ptr);