You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2016/07/18 16:20:32 UTC

[07/16] incubator-trafodion git commit: cleaned up the commented code

cleaned up the commented code


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/ee53fc30
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/ee53fc30
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/ee53fc30

Branch: refs/heads/master
Commit: ee53fc30ff0e30ab704bf61f86261b04451ff26f
Parents: 85783bf
Author: Anuradha Hegde <an...@esgyn.com>
Authored: Fri Jun 24 19:23:46 2016 +0000
Committer: Anuradha Hegde <an...@esgyn.com>
Committed: Fri Jun 24 19:23:46 2016 +0000

----------------------------------------------------------------------
 .../odbc/nsksrvrcore/ResStatisticsSession.cpp   | 48 --------------------
 1 file changed, 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/ee53fc30/core/conn/odbc/src/odbc/nsksrvrcore/ResStatisticsSession.cpp
----------------------------------------------------------------------
diff --git a/core/conn/odbc/src/odbc/nsksrvrcore/ResStatisticsSession.cpp b/core/conn/odbc/src/odbc/nsksrvrcore/ResStatisticsSession.cpp
index c33c4b7..4fd85e5 100644
--- a/core/conn/odbc/src/odbc/nsksrvrcore/ResStatisticsSession.cpp
+++ b/core/conn/odbc/src/odbc/nsksrvrcore/ResStatisticsSession.cpp
@@ -204,53 +204,6 @@ void ResStatisticsSession::end()
 
 	endTime_ts = endTime;
 
-/*
-	string session_status = "END";
-       
-	std::tr1::shared_ptr<SESSION_INFO> pSession_info = std::tr1::shared_ptr<SESSION_INFO>(new SESSION_INFO);
-	*pSession_info = {0};
-
-	pSession_info->m_process_id = srvrGlobal->process_id;
-	pSession_info->m_thread_id = srvrGlobal->receiveThrId;
-	pSession_info->m_node_id = srvrGlobal->m_NodeId;
-	pSession_info->m_ip_address_id = srvrGlobal->IpAddress;
-	pSession_info->m_process_name = srvrGlobal->m_ProcName;
-	pSession_info->m_sessionId = srvrGlobal->sessionId;
-	pSession_info->m_session_status = "END";
-	pSession_info->m_session_start_utc_ts = startTime_ts;
-	pSession_info->m_session_end_utc_ts = endTime_ts;
-	pSession_info->m_user_id = srvrGlobal->userID;
-	pSession_info->m_user_name = srvrGlobal->userSID;
-	pSession_info->m_role_name = srvrGlobal->QSRoleName;
-	pSession_info->m_client_name = srvrGlobal->ClientComputerName;
-	pSession_info->m_client_user_name = resCollectinfo.clientUserName;
-	pSession_info->m_application_name = srvrGlobal->ApplicationName;
-        UpdateStringText(pSession_info->m_application_name);
-	pSession_info->m_profile_name = srvrGlobal->mappedProfileName;
-	pSession_info->m_sla_name= srvrGlobal->mappedSLAName;
-	pSession_info->m_total_odbc_exection_time = totalOdbcExecutionTime;
-	pSession_info->m_total_odbc_elapsed_time = totalOdbcElapseTime;
-	pSession_info->m_total_insert_stmts_executed = totalInsertStatements;
-	pSession_info->m_total_delete_stmts_executed = totalDeleteStatements;
-	pSession_info->m_total_update_stmts_executed = totalUpdateStatements;
-	pSession_info->m_total_select_stmts_executed = totalSelectStatements;
-	pSession_info->m_total_catalog_stmts = totalCatalogStatements;
-	pSession_info->m_total_prepares = totalPrepares;
-	pSession_info->m_total_executes = totalExecutes;
-	pSession_info->m_total_fetches = totalFetches;
-	pSession_info->m_total_closes = totalCloses;
-	pSession_info->m_total_execdirects = totalExecDirects;
-	pSession_info->m_total_errors = totalErrors;
-	pSession_info->m_total_warnings = totalWarnings;
-	pSession_info->m_total_login_elapsed_time_mcsec = resCollectinfo.totalLoginTime;
-	pSession_info->m_ldap_login_elapsed_time_mcsec = resCollectinfo.ldapLoginTime;
-	pSession_info->m_sql_user_elapsed_time_mcsec = resCollectinfo.sqlUserTime;
-	pSession_info->m_search_connection_elapsed_time_mcsec = resCollectinfo.searchConnectionTime;
-	pSession_info->m_search_elapsed_time_mcsec = resCollectinfo.searchTime;
-	pSession_info->m_authentication_connection_elapsed_time_mcsec = resCollectinfo.authenticationConnectionTime;
-	pSession_info->m_authentication_elapsed_time_mcsec =  resCollectinfo.authenticationTime;
-
-*/
 	if ( srvrGlobal->m_bStatisticsEnabled )
 	{
 		if( srvrGlobal->m_statisticsPubType == STATISTICS_AGGREGATED )
@@ -258,7 +211,6 @@ void ResStatisticsSession::end()
 			std::tr1::shared_ptr<SESSION_AGGREGATION> pAggr_info = getAggrStats();
 			sendAggrStats(PUB_TYPE_SESSION_END_AGGREGATION, pAggr_info);
 		}
-		//sendSessionStats(pSession_info);
                 sendSessionInfo("END", startTime_ts, endTime_ts);
 	}
 }