summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2013-05-17 19:09:53 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2013-05-17 19:09:53 +0000
commit662595e4d0f943823add7e9062e1c3c37a5fe077 (patch)
tree24ede052b542d154da206834d1b1832eaab322ca
parente341bf5547700643cc51796a7dc79eb5f7e1ce50 (diff)
downloadATCD-662595e4d0f943823add7e9062e1c3c37a5fe077.tar.gz
Fri May 17 19:02:02 UTC 2013 Phil Mesnier <mesnier_p@ociweb.com>
-rw-r--r--TAO/ChangeLog6
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/AsyncListManager.cpp24
2 files changed, 30 insertions, 0 deletions
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 <mesnier_p@ociweb.com>
+
+ * orbsvcs/ImplRepo_Service/AsyncListManager.cpp:
+
+ Added some debugging output.
+
Fri May 17 13:42:24 UTC 2013 Phil Mesnier <mesnier_p@ociweb.com>
* 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_--;