Bug #81793 MaxNoOfExecutionThreads = 12 and 13 swapped in documentation
Submitted: 9 Jun 2016 22:49 Modified: 15 Jun 2016 10:37
Reporter: Jesper wisborg Krogh Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Documentation Severity:S3 (Non-critical)
Version:7.4+ OS:Any
Assigned to: Jon Stephens CPU Architecture:Any

[9 Jun 2016 22:49] Jesper wisborg Krogh
Description:
In the table mapping MaxNoOfExecutionThreads to the number of ldm, tc, send, and receive threads the values for MaxNoOfExecutionThreads are swapped.

How to repeat:
See http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster-ndbd-definition.html#ndbparam-ndbmtd-... :

MaxNoOfExecutionThreads Value	LDM Threads	TC Threads	Send Threads	Receive Threads
...
12	6	3	1	2
13	6	2	1	2

But in storage/ndb/src/kernel/vm/mt_thr_config.cpp (from 7.4.10):

 133 void
 134 computeThreadConfig(Uint32 MaxNoOfExecutionThreads,
 135                     Uint32 & tcthreads,
 136                     Uint32 & lqhthreads,
 137                     Uint32 & sendthreads,
 138                     Uint32 & recvthreads)
 139 {
 140   assert(MaxNoOfExecutionThreads >= 9);
 141   static const struct entry
 142   {
 143     Uint32 M;
 144     Uint32 lqh;
 145     Uint32 tc;
 146     Uint32 send;
 147     Uint32 recv;
 148   } table[] = {
 149     { 9, 4, 2, 0, 1 },
 150     { 10, 4, 2, 1, 1 },
 151     { 11, 4, 3, 1, 1 },
 152     { 12, 6, 2, 1, 1 },
 153     { 13, 6, 3, 1, 1 },
...
[15 Jun 2016 10:37] Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly.