MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DbspjInit.cpp
1 /*
2  Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #include <pc.hpp>
19 #define DBSPJ_C
20 #include "Dbspj.hpp"
21 #include <ndb_limits.h>
22 
23 #define DEBUG(x) { ndbout << "SPJ::" << x << endl; }
24 
25 
26 Dbspj::Dbspj(Block_context& ctx, Uint32 instanceNumber):
27  SimulatedBlock(DBSPJ, ctx, instanceNumber),
28  m_scan_request_hash(m_request_pool),
29  m_lookup_request_hash(m_request_pool)
30 {
31  BLOCK_CONSTRUCTOR(Dbspj);
32 
33  addRecSignal(GSN_DUMP_STATE_ORD, &Dbspj::execDUMP_STATE_ORD);
34  addRecSignal(GSN_READ_NODESCONF, &Dbspj::execREAD_NODESCONF);
35  addRecSignal(GSN_READ_CONFIG_REQ, &Dbspj::execREAD_CONFIG_REQ);
36  addRecSignal(GSN_STTOR, &Dbspj::execSTTOR);
37  addRecSignal(GSN_DBINFO_SCANREQ, &Dbspj::execDBINFO_SCANREQ);
38  addRecSignal(GSN_CONTINUEB, &Dbspj::execCONTINUEB);
39  addRecSignal(GSN_NODE_FAILREP, &Dbspj::execNODE_FAILREP);
40  addRecSignal(GSN_INCL_NODEREQ, &Dbspj::execINCL_NODEREQ);
41  addRecSignal(GSN_API_FAILREQ, &Dbspj::execAPI_FAILREQ);
42 
46  addRecSignal(GSN_DIH_SCAN_TAB_REF, &Dbspj::execDIH_SCAN_TAB_REF);
47  addRecSignal(GSN_DIH_SCAN_TAB_CONF, &Dbspj::execDIH_SCAN_TAB_CONF);
48  addRecSignal(GSN_DIH_SCAN_GET_NODES_REF, &Dbspj::execDIH_SCAN_GET_NODES_REF);
49  addRecSignal(GSN_DIH_SCAN_GET_NODES_CONF,&Dbspj::execDIH_SCAN_GET_NODES_CONF);
50 
54  addRecSignal(GSN_LQHKEYREQ, &Dbspj::execLQHKEYREQ);
55  addRecSignal(GSN_SCAN_FRAGREQ, &Dbspj::execSCAN_FRAGREQ);
56  addRecSignal(GSN_SCAN_NEXTREQ, &Dbspj::execSCAN_NEXTREQ);
57 
61  addRecSignal(GSN_LQHKEYREF, &Dbspj::execLQHKEYREF);
62  addRecSignal(GSN_LQHKEYCONF, &Dbspj::execLQHKEYCONF);
63  addRecSignal(GSN_SCAN_FRAGREF, &Dbspj::execSCAN_FRAGREF);
64  addRecSignal(GSN_SCAN_FRAGCONF, &Dbspj::execSCAN_FRAGCONF);
65  addRecSignal(GSN_TRANSID_AI, &Dbspj::execTRANSID_AI);
66  addRecSignal(GSN_SCAN_HBREP, &Dbspj::execSCAN_HBREP);
67 
68  ndbout << "Instantiating DBSPJ instanceNo=" << instanceNumber << endl;
69 }//Dbspj::Dbspj()
70 
71 Dbspj::~Dbspj()
72 {
73  m_page_pool.clear();
74 }//Dbspj::~Dbspj()
75 
76 
77 BLOCK_FUNCTIONS(Dbspj)
78