Adding executor to fetcher: there was a deadlock otherwise
diff --git a/src/fetch-manager.cc b/src/fetch-manager.cc
index 3b5f181..d74f210 100644
--- a/src/fetch-manager.cc
+++ b/src/fetch-manager.cc
@@ -25,7 +25,7 @@
#include <boost/throw_exception.hpp>
#include "logging.h"
-INIT_LOGGER ("Fetch.Manager");
+INIT_LOGGER ("FetchManager");
using namespace boost;
using namespace std;
@@ -100,6 +100,8 @@
if (item->IsActive ())
continue;
+ _LOG_DEBUG ("Start fetching of " << item->GetName ());
+
m_currentParallelFetches ++;
item->RestartPipeline ();
}
@@ -108,6 +110,8 @@
void
FetchManager::DidNoDataTimeout (Fetcher &fetcher)
{
+ _LOG_DEBUG ("No data timeout for " << fetcher.GetName () << " with forwarding hint: " << fetcher.GetForwardingHint ());
+
fetcher.SetForwardingHint (Ccnx::Name (BROADCAST_DOMAIN));
{
unique_lock<mutex> lock (m_parellelFetchMutex);