Commit b39ee4ff authored by unknown's avatar unknown

ndb: added debug printout to track down a bug

parent dfa9a764
...@@ -2565,9 +2565,10 @@ Suma::reportAllSubscribers(Signal *signal, ...@@ -2565,9 +2565,10 @@ Suma::reportAllSubscribers(Signal *signal,
return; return;
} }
#ifdef VM_TRACE //#ifdef VM_TRACE
ndbout_c("reportAllSubscribers"); ndbout_c("reportAllSubscribers subPtr.i: %d subPtr.p->n_subscribers: %d",
#endif subPtr.i, subPtr.p->n_subscribers);
//#endif
SubTableData * data = (SubTableData*)signal->getDataPtrSend(); SubTableData * data = (SubTableData*)signal->getDataPtrSend();
data->gci = m_last_complete_gci + 1; data->gci = m_last_complete_gci + 1;
data->tableId = subPtr.p->m_tableId; data->tableId = subPtr.p->m_tableId;
...@@ -2588,18 +2589,28 @@ Suma::reportAllSubscribers(Signal *signal, ...@@ -2588,18 +2589,28 @@ Suma::reportAllSubscribers(Signal *signal,
data->senderData = i_subbPtr.p->m_senderData; data->senderData = i_subbPtr.p->m_senderData;
sendSignal(i_subbPtr.p->m_senderRef, GSN_SUB_TABLE_DATA, signal, sendSignal(i_subbPtr.p->m_senderRef, GSN_SUB_TABLE_DATA, signal,
SubTableData::SignalLength, JBB); SubTableData::SignalLength, JBB);
//#ifdef VM_TRACE
ndbout_c("sent %s(%d) to node %d, req_nodeid: %d senderData: %d",
table_event == NdbDictionary::Event::_TE_SUBSCRIBE ?
"SUBSCRIBE" : "UNSUBSCRIBE", (int) table_event,
refToNode(i_subbPtr.p->m_senderRef),
data->req_nodeid, data->senderData
);
//#endif
if (i_subbPtr.i != subbPtr.i) if (i_subbPtr.i != subbPtr.i)
{ {
data->req_nodeid = refToNode(i_subbPtr.p->m_senderRef); data->req_nodeid = refToNode(i_subbPtr.p->m_senderRef);
data->senderData = subbPtr.p->m_senderData; data->senderData = subbPtr.p->m_senderData;
sendSignal(subbPtr.p->m_senderRef, GSN_SUB_TABLE_DATA, signal, sendSignal(subbPtr.p->m_senderRef, GSN_SUB_TABLE_DATA, signal,
SubTableData::SignalLength, JBB); SubTableData::SignalLength, JBB);
#ifdef VM_TRACE //#ifdef VM_TRACE
ndbout_c("sent %s(%d) to node %d", ndbout_c("sent %s(%d) to node %d, req_nodeid: %d senderData: %d",
table_event == NdbDictionary::Event::_TE_SUBSCRIBE ? table_event == NdbDictionary::Event::_TE_SUBSCRIBE ?
"SUBSCRIBE" : "UNSUBSCRIBE", (int) table_event, "SUBSCRIBE" : "UNSUBSCRIBE", (int) table_event,
refToNode(subbPtr.p->m_senderRef)); refToNode(subbPtr.p->m_senderRef),
#endif data->req_nodeid, data->senderData
);
//#endif
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment