From 662595e4d0f943823add7e9062e1c3c37a5fe077 Mon Sep 17 00:00:00 2001 From: Phil Mesnier Date: Fri, 17 May 2013 19:09:53 +0000 Subject: Fri May 17 19:02:02 UTC 2013 Phil Mesnier --- TAO/ChangeLog | 6 ++++++ TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp | 24 +++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 1f3bbc097e0..b0d9be63cac 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,9 @@ +Fri May 17 19:02:02 UTC 2013 Phil Mesnier + + * orbsvcs/ImplRepo_Service/AsyncListManager.cpp: + + Added some debugging output. + Fri May 17 13:42:24 UTC 2013 Phil Mesnier * docs/libraries.html: diff --git a/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp b/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp index 047c05fb53e..f57435ea440 100644 --- a/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp @@ -4,6 +4,7 @@ #include "AsyncListManager.h" #include "Iterator.h" #include "Locator_Repository.h" +#include "ImR_Locator_i.h" #include "orbsvcs/Log_Macros.h" @@ -39,6 +40,14 @@ AsyncListManager::poa (void) void AsyncListManager::final_state (void) { + if (ImR_Locator_i::debug() > 4) + { + ORBSVCS_DEBUG ((LM_DEBUG, + ACE_TEXT ("(%P|%t) AsyncListManager::final_state, ") + ACE_TEXT ("waiters count = %d, pinger not null? %d\n"), + this->waiters_, (this->pinger_ != 0))); + } + if (this->pinger_ != 0 && this->waiters_ > 0) { return; @@ -182,6 +191,15 @@ AsyncListManager::list_i (CORBA::ULong start, CORBA::ULong how_many) } } } + + if (ImR_Locator_i::debug() > 4) + { + ORBSVCS_DEBUG ((LM_DEBUG, + ACE_TEXT ("(%P|%t) AsyncListManager::list_i, %d waiters") + ACE_TEXT (" out of %d regsitered servers\n"), + this->waiters_, (this->pinger_ != 0))); + } + if (this->waiters_ == 0) { this->final_state (); @@ -208,6 +226,12 @@ AsyncListManager::ping_replied (CORBA::ULong index, LiveStatus status) ImplementationRepository::ACTIVE_NO; break; default: + if (ImR_Locator_i::debug() > 4) + { + ORBSVCS_DEBUG ((LM_DEBUG, + ACE_TEXT ("(%P|%t) AsyncListManager::ping_replied, index = %d ") + ACE_TEXT ("status = %d\n"))); + } return; } this->waiters_--; -- cgit v1.2.1