Documentation Home
NDB Cluster Internals
Download this Manual
PDF (US Ltr) - 1.0Mb
PDF (A4) - 0.9Mb
HTML Download (TGZ) - 369.7Kb
HTML Download (Zip) - 380.8Kb


2.52 DUMP 2502

In NDB Cluster 7.4 and later, this code can be used to print a set of scan records for a given DBTC block instance in the cluster log.

Table 2.60 DUMP code 2502 in NDB Cluster 7.4 and later

Code Symbol Kernel Block
2502 TcDumpAllScanRec DBTC

Description.  This DUMP code uses the syntax shown here:

DUMP 2502 recordno numrecords dbtcinst [activeonly]

This prints numrecords scan records from DBTC instance number dbtcinst, starting with the record having record number recno. The last argument is optional; all of the others shown are required. activeonly is a boolean that determines whether or not to print only active records. If set to 1 (actually, any nonzero value), only active records are printed and ignore any free records not in use for the moment. 0 means all records are included. The default is 1.

NDB Cluster 7.3 and earlier:

Table 2.61 DUMP code 2502 in NDB Cluster 7.3 and earlier.

Code Symbol Kernel Block
2502 TcDumpAllScanRec DBTC

Description.  Dumps all scan records held by TC blocks.

Sample Output. 

Node 2: TC: Dump all ScanRecord - size: 256
Node 2: Dbtc::ScanRecord[1]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=2
Node 2: Dbtc::ScanRecord[2]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=3
Node 2: Dbtc::ScanRecord[3]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=4

.
.
.

Node 2: Dbtc::ScanRecord[254]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=255
Node 2: Dbtc::ScanRecord[255]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=-256
Node 2: Dbtc::ScanRecord[255]: state=0nextfrag=0, nofrag=0
Node 2:  ailen=0, para=0, receivedop=0, noOprePperFrag=0
Node 2:  schv=0, tab=0, sproc=0
Node 2:  apiRec=-256, next=-256

Additional Information.  [N/A]