Commit 5bd3bd75 authored by unknown's avatar unknown

fixed init of variables in ndb block constructors

parent 3fd11cf6
......@@ -262,6 +262,18 @@ Dbdih::Dbdih(const class Configuration & config):
addRecSignal(GSN_CREATE_FRAGMENTATION_REQ,
&Dbdih::execCREATE_FRAGMENTATION_REQ);
apiConnectRecord = 0;
connectRecord = 0;
fileRecord = 0;
fragmentstore = 0;
pageRecord = 0;
replicaRecord = 0;
tabRecord = 0;
createReplicaRecord = 0;
nodeGroupRecord = 0;
nodeRecord = 0;
takeOverRecord = 0;
}//Dbdih::Dbdih()
Dbdih::~Dbdih()
......
......@@ -291,6 +291,19 @@ Dbtc::Dbtc(const class Configuration & conf):
addRecSignal(GSN_ALTER_TAB_REQ, &Dbtc::execALTER_TAB_REQ);
cacheRecord = 0;
apiConnectRecord = 0;
tcConnectRecord = 0;
hostRecord = 0;
tableRecord = 0;
scanRecord = 0;
databufRecord = 0;
attrbufRecord = 0;
gcpRecord = 0;
tcFailRecord = 0;
c_apiConTimer = 0;
c_apiConTimer_line = 0;
#ifdef VM_TRACE
{
void* tmp[] = { &apiConnectptr,
......
......@@ -126,6 +126,22 @@ Dbtup::Dbtup(const class Configuration & conf)
addRecSignal(GSN_ACC_CHECK_SCAN, &Dbtup::execACC_CHECK_SCAN);
initData();
attrbufrec = 0;
checkpointInfo = 0;
diskBufferSegmentInfo = 0;
fragoperrec = 0;
fragrecord = 0;
hostBuffer = 0;
localLogInfo = 0;
operationrec = 0;
page = 0;
pageRange = 0;
pendingFileOpenInfo = 0;
restartInfoRecord = 0;
tablerec = 0;
tableDescriptor = 0;
undoPage = 0;
}//Dbtup::Dbtup()
Dbtup::~Dbtup()
......
......@@ -71,6 +71,8 @@ Ndbfs::Ndbfs(const Configuration & conf) :
addRecSignal(GSN_FSAPPENDREQ, &Ndbfs::execFSAPPENDREQ);
addRecSignal(GSN_FSREMOVEREQ, &Ndbfs::execFSREMOVEREQ);
// Set send signals
theRequestPool = 0;
}
Ndbfs::~Ndbfs()
......@@ -85,7 +87,8 @@ Ndbfs::~Ndbfs()
}//for
theFiles.clear();
delete theRequestPool;
if (theRequestPool)
delete theRequestPool;
}
void
......
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