persistentstorage/sql/SRC/Server/SqlSrvSession.cpp
changeset 55 44f437012c90
parent 31 ba1c4f4a893f
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
    32 
    32 
    33 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    33 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    34 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    34 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
    35 
    35 
    36 #pragma BullseyeCoverage off
    36 #pragma BullseyeCoverage off
       
    37 #pragma CTC SKIP
    37 
    38 
    38 #ifdef _DEBUG
    39 #ifdef _DEBUG
    39 
    40 
    40 const TInt KDelayedDbHeapFailureMask = 0x1000;
    41 const TInt KDelayedDbHeapFailureMask = 0x1000;
    41 
    42 
   145 	{
   146 	{
   146 	}
   147 	}
   147 
   148 
   148 #endif//_DEBUG
   149 #endif//_DEBUG
   149 
   150 
       
   151 #pragma CTC ENDSKIP
   150 #pragma BullseyeCoverage on
   152 #pragma BullseyeCoverage on
   151 
   153 
   152 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
   154 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
   153 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
   155 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
   154 
   156 
   484 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   486 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   485 ////////////////////////////          Profiler  operations           ///////////////////////////////////
   487 ////////////////////////////          Profiler  operations           ///////////////////////////////////
   486 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   488 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   487 
   489 
   488 #pragma BullseyeCoverage off
   490 #pragma BullseyeCoverage off
       
   491 #pragma CTC SKIP
   489 
   492 
   490 /**
   493 /**
   491 Retrieves the counter values for the specified profiling counter.
   494 Retrieves the counter values for the specified profiling counter.
   492 
   495 
   493 @leave  KErrNone, the operation completed successfully,
   496 @leave  KErrNone, the operation completed successfully,
   521 		{
   524 		{
   522 		TSqlSrvResourceProfiler::QueryL(aMessage);
   525 		TSqlSrvResourceProfiler::QueryL(aMessage);
   523 		}				
   526 		}				
   524 	}
   527 	}
   525 
   528 
       
   529 #pragma CTC ENDSKIP
   526 #pragma BullseyeCoverage on
   530 #pragma BullseyeCoverage on
   527 
   531 
   528 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   532 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   529 ////////////////////////////          Database operations           ///////////////////////////////////
   533 ////////////////////////////          Database operations           ///////////////////////////////////
   530 ///////////////////////////////////////////////////////////////////////////////////////////////////////
   534 ///////////////////////////////////////////////////////////////////////////////////////////////////////
  1653 	bufFlat.BufPtr().Copy(aSecurityPolicyData);
  1657 	bufFlat.BufPtr().Copy(aSecurityPolicyData);
  1654 	CleanupStack::Pop(dbPolicy);
  1658 	CleanupStack::Pop(dbPolicy);
  1655 	return dbPolicy;
  1659 	return dbPolicy;
  1656 	}
  1660 	}
  1657 
  1661 
       
  1662 #pragma BullseyeCoverage off
       
  1663 #pragma CTC SKIP
       
  1664 
  1658 /**
  1665 /**
  1659 Reports how many objects are allocated by the client.
  1666 Reports how many objects are allocated by the client.
  1660 If the database connection is not in a test mode, the allocated memory cells count will be ignored.
  1667 If the database connection is not in a test mode, the allocated memory cells count will be ignored.
  1661 */
  1668 */
  1662 TInt CSqlSrvSession::CountResources()
  1669 TInt CSqlSrvSession::CountResources()
  1663 	{
  1670 	{
  1664 	return iStatements.Count() + iIpcStreams.Count() + (iDbResourceTestMode ? User::CountAllocCells() : 0);
  1671 	return iStatements.Count() + iIpcStreams.Count() + (iDbResourceTestMode ? User::CountAllocCells() : 0);
  1665 	}
  1672 	}
       
  1673 
       
  1674 #pragma CTC ENDSKIP
       
  1675 #pragma BullseyeCoverage on
  1666 
  1676 
  1667 /**
  1677 /**
  1668 Extracts from aMessage:
  1678 Extracts from aMessage:
  1669 - function code;
  1679 - function code;
  1670 - stream or statement handle;
  1680 - stream or statement handle;