summaryrefslogtreecommitdiff
path: root/storage/ndb
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2006-03-11 07:14:36 +0100
committerunknown <tomas@poseidon.ndb.mysql.com>2006-03-11 07:14:36 +0100
commit9376ec63366fac379c9c9fc90dd1dc1a43872134 (patch)
treea5c1cdb246fcc9bcfbec142dfe4db7e629d0e099 /storage/ndb
parent435e084481f56879ba633d9633e5b8a2cbb3ab0b (diff)
downloadmariadb-git-9376ec63366fac379c9c9fc90dd1dc1a43872134.tar.gz
ndb suma: added some VM_TRACE debug printouts for reposrtSubscribers
Diffstat (limited to 'storage/ndb')
-rw-r--r--storage/ndb/src/kernel/blocks/suma/Suma.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/ndb/src/kernel/blocks/suma/Suma.cpp b/storage/ndb/src/kernel/blocks/suma/Suma.cpp
index c91f16cdb57..458c0f7306b 100644
--- a/storage/ndb/src/kernel/blocks/suma/Suma.cpp
+++ b/storage/ndb/src/kernel/blocks/suma/Suma.cpp
@@ -2556,6 +2556,9 @@ Suma::reportAllSubscribers(Signal *signal,
return;
}
+#ifdef VM_TRACE
+ ndbout_c("reportAllSubscribers");
+#endif
SubTableData * data = (SubTableData*)signal->getDataPtrSend();
data->gci = m_last_complete_gci + 1;
data->tableId = subPtr.p->m_tableId;
@@ -2582,6 +2585,12 @@ Suma::reportAllSubscribers(Signal *signal,
data->senderData = subbPtr.p->m_senderData;
sendSignal(subbPtr.p->m_senderRef, GSN_SUB_TABLE_DATA, signal,
SubTableData::SignalLength, JBB);
+#ifdef VM_TRACE
+ ndbout_c("sent %s(%d) to node %d",
+ table_event == NdbDictionary::Event::_TE_SUBSCRIBE ?
+ "SUBSCRIBE" : "UNSUBSCRIBE", (int) table_event,
+ refToNode(subbPtr.p->m_senderRef));
+#endif
}
}
}