Loading VC++Files/client/mysqlslap.vcproj +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="wsock32.lib odbc32.lib odbccp32.lib mysqlclient.lib mysys.lib" AdditionalDependencies="wsock32.lib odbc32.lib odbccp32.lib" OutputFile="../client_debug/mysqlslap.exe" LinkIncremental="1" SuppressStartupBanner="TRUE" Loading VC++Files/mysql.sln +2 −0 Original line number Diff line number Diff line Loading @@ -290,6 +290,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bdb", "storage\bdb\bdb.vcpr EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mysqlslap", "client\mysqlslap.vcproj", "{2E9332CF-072A-4381-BF37-17C5AB4F8583}" ProjectSection(ProjectDependencies) = postProject {26383276-4843-494B-8BE0-8936ED3EBAAB} = {26383276-4843-494B-8BE0-8936ED3EBAAB} {44D9C7DC-6636-4B82-BD01-6876C64017DF} = {44D9C7DC-6636-4B82-BD01-6876C64017DF} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "archive", "storage\archive\archive.vcproj", "{4471CADD-737B-4AD7-A108-2FBAA1C4B03B}" Loading storage/ndb/include/kernel/signaldata/UtilExecute.hpp +2 −3 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ public: GET_SET_SENDERREF GET_SET_SENDERDATA void setPrepareId(Uint32 pId) { prepareId = pId; }; // !! unsets release flag Uint32 getPrepareId() { return prepareId & 0xFF; }; Uint32 getPrepareId() const { return prepareId & 0xFF; }; void setReleaseFlag() { prepareId |= 0x100; }; bool getReleaseFlag() { return (prepareId & 0x100) != 0; }; bool getReleaseFlag() const { return (prepareId & 0x100) != 0; }; private: Uint32 senderData; // MUST be no 1! Uint32 senderRef; Loading Loading @@ -117,7 +117,6 @@ public: IllegalKeyNumber = 1, IllegalAttrNumber = 2, TCError = 3, IllegalPrepareId = 4, AllocationError = 5, MissingDataSection = 6, MissingData = 7 Loading storage/ndb/src/common/debugger/signaldata/UtilExecute.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -20,10 +20,12 @@ bool printUTIL_EXECUTE_REQ(FILE* out, const Uint32 * data, Uint32 len, Uint16 rec) { const UtilExecuteReq* const sig = (UtilExecuteReq*)data; fprintf(out, " senderRef: H'%.8x, senderData: H'%.8x prepareId: %d\n", fprintf(out, " senderRef: H'%.8x, senderData: H'%.8x prepareId: %d " " releaseFlag: %d\n", sig->senderRef, sig->senderData, sig->prepareId); sig->getPrepareId(), sig->getReleaseFlag()); return true; } Loading @@ -48,8 +50,6 @@ printUTIL_EXECUTE_REF(FILE* out, const Uint32 * data, Uint32 len, Uint16 rec) "IllegalAttrNumber" : sig->errorCode == UtilExecuteRef::TCError ? "TCError" : sig->errorCode == UtilExecuteRef::IllegalPrepareId ? "IllegalPrepareId" : sig->errorCode == UtilExecuteRef::AllocationError ? "AllocationError" : "Unknown"); Loading storage/ndb/src/kernel/blocks/dbutil/DbUtil.cpp +5 −14 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ DbUtil::DbUtil(const Configuration & conf) : SimulatedBlock(DBUTIL, conf), c_runningPrepares(c_preparePool), c_runningPreparedOperations(c_preparedOperationPool), c_seizingTransactions(c_transactionPool), c_runningTransactions(c_transactionPool), c_lockQueues(c_lockQueuePool) Loading Loading @@ -566,12 +565,13 @@ DbUtil::execDUMP_STATE_ORD(Signal* signal){ } ndbout << "PreparedOperation Id: " << signal->theData[2] << endl; PreparedOperationPtr prepOpPtr; c_runningPreparedOperations.getPtr(prepOpPtr, signal->theData[2]); c_preparedOperationPool.getPtr(prepOpPtr, signal->theData[2]); prepOpPtr.p->print(); return; } // ** Print all records ** #if 0 // not implemented PreparedOperationPtr prepOpPtr; if (!c_runningPreparedOperations.first(prepOpPtr)) { ndbout << "No PreparedOperations exist" << endl; Loading @@ -583,6 +583,7 @@ DbUtil::execDUMP_STATE_ORD(Signal* signal){ ndbout << "]"; c_runningPreparedOperations.next(prepOpPtr); } #endif return; case 3: Loading Loading @@ -988,7 +989,7 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr) * Seize and store PreparedOperation struct *******************************************/ PreparedOperationPtr prepOpPtr; if(!c_runningPreparedOperations.seize(prepOpPtr)) { if(!c_preparedOperationPool.seize(prepOpPtr)) { jam(); releaseSections(signal); sendUtilPrepareRef(signal, UtilPrepareRef::PREPARED_OPERATION_SEIZE_ERROR, Loading Loading @@ -1738,17 +1739,7 @@ DbUtil::execUTIL_EXECUTE_REQ(Signal* signal) * Get PreparedOperation struct *******************************/ PreparedOperationPtr prepOpPtr; c_runningPreparedOperations.first(prepOpPtr); while (!prepOpPtr.isNull() && prepOpPtr.i != prepareId) c_runningPreparedOperations.next(prepOpPtr); if (prepOpPtr.i != prepareId) { jam(); releaseSections(signal); sendUtilExecuteRef(signal, UtilExecuteRef::IllegalPrepareId, 0, clientRef, clientData); return; } c_preparedOperationPool.getPtr(prepOpPtr, prepareId); prepOpPtr.p->releaseFlag = releaseFlag; Loading Loading
VC++Files/client/mysqlslap.vcproj +1 −1 Original line number Diff line number Diff line Loading @@ -162,7 +162,7 @@ Name="VCCustomBuildTool"/> <Tool Name="VCLinkerTool" AdditionalDependencies="wsock32.lib odbc32.lib odbccp32.lib mysqlclient.lib mysys.lib" AdditionalDependencies="wsock32.lib odbc32.lib odbccp32.lib" OutputFile="../client_debug/mysqlslap.exe" LinkIncremental="1" SuppressStartupBanner="TRUE" Loading
VC++Files/mysql.sln +2 −0 Original line number Diff line number Diff line Loading @@ -290,6 +290,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bdb", "storage\bdb\bdb.vcpr EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mysqlslap", "client\mysqlslap.vcproj", "{2E9332CF-072A-4381-BF37-17C5AB4F8583}" ProjectSection(ProjectDependencies) = postProject {26383276-4843-494B-8BE0-8936ED3EBAAB} = {26383276-4843-494B-8BE0-8936ED3EBAAB} {44D9C7DC-6636-4B82-BD01-6876C64017DF} = {44D9C7DC-6636-4B82-BD01-6876C64017DF} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "archive", "storage\archive\archive.vcproj", "{4471CADD-737B-4AD7-A108-2FBAA1C4B03B}" Loading
storage/ndb/include/kernel/signaldata/UtilExecute.hpp +2 −3 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ public: GET_SET_SENDERREF GET_SET_SENDERDATA void setPrepareId(Uint32 pId) { prepareId = pId; }; // !! unsets release flag Uint32 getPrepareId() { return prepareId & 0xFF; }; Uint32 getPrepareId() const { return prepareId & 0xFF; }; void setReleaseFlag() { prepareId |= 0x100; }; bool getReleaseFlag() { return (prepareId & 0x100) != 0; }; bool getReleaseFlag() const { return (prepareId & 0x100) != 0; }; private: Uint32 senderData; // MUST be no 1! Uint32 senderRef; Loading Loading @@ -117,7 +117,6 @@ public: IllegalKeyNumber = 1, IllegalAttrNumber = 2, TCError = 3, IllegalPrepareId = 4, AllocationError = 5, MissingDataSection = 6, MissingData = 7 Loading
storage/ndb/src/common/debugger/signaldata/UtilExecute.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -20,10 +20,12 @@ bool printUTIL_EXECUTE_REQ(FILE* out, const Uint32 * data, Uint32 len, Uint16 rec) { const UtilExecuteReq* const sig = (UtilExecuteReq*)data; fprintf(out, " senderRef: H'%.8x, senderData: H'%.8x prepareId: %d\n", fprintf(out, " senderRef: H'%.8x, senderData: H'%.8x prepareId: %d " " releaseFlag: %d\n", sig->senderRef, sig->senderData, sig->prepareId); sig->getPrepareId(), sig->getReleaseFlag()); return true; } Loading @@ -48,8 +50,6 @@ printUTIL_EXECUTE_REF(FILE* out, const Uint32 * data, Uint32 len, Uint16 rec) "IllegalAttrNumber" : sig->errorCode == UtilExecuteRef::TCError ? "TCError" : sig->errorCode == UtilExecuteRef::IllegalPrepareId ? "IllegalPrepareId" : sig->errorCode == UtilExecuteRef::AllocationError ? "AllocationError" : "Unknown"); Loading
storage/ndb/src/kernel/blocks/dbutil/DbUtil.cpp +5 −14 Original line number Diff line number Diff line Loading @@ -52,7 +52,6 @@ DbUtil::DbUtil(const Configuration & conf) : SimulatedBlock(DBUTIL, conf), c_runningPrepares(c_preparePool), c_runningPreparedOperations(c_preparedOperationPool), c_seizingTransactions(c_transactionPool), c_runningTransactions(c_transactionPool), c_lockQueues(c_lockQueuePool) Loading Loading @@ -566,12 +565,13 @@ DbUtil::execDUMP_STATE_ORD(Signal* signal){ } ndbout << "PreparedOperation Id: " << signal->theData[2] << endl; PreparedOperationPtr prepOpPtr; c_runningPreparedOperations.getPtr(prepOpPtr, signal->theData[2]); c_preparedOperationPool.getPtr(prepOpPtr, signal->theData[2]); prepOpPtr.p->print(); return; } // ** Print all records ** #if 0 // not implemented PreparedOperationPtr prepOpPtr; if (!c_runningPreparedOperations.first(prepOpPtr)) { ndbout << "No PreparedOperations exist" << endl; Loading @@ -583,6 +583,7 @@ DbUtil::execDUMP_STATE_ORD(Signal* signal){ ndbout << "]"; c_runningPreparedOperations.next(prepOpPtr); } #endif return; case 3: Loading Loading @@ -988,7 +989,7 @@ DbUtil::prepareOperation(Signal* signal, PreparePtr prepPtr) * Seize and store PreparedOperation struct *******************************************/ PreparedOperationPtr prepOpPtr; if(!c_runningPreparedOperations.seize(prepOpPtr)) { if(!c_preparedOperationPool.seize(prepOpPtr)) { jam(); releaseSections(signal); sendUtilPrepareRef(signal, UtilPrepareRef::PREPARED_OPERATION_SEIZE_ERROR, Loading Loading @@ -1738,17 +1739,7 @@ DbUtil::execUTIL_EXECUTE_REQ(Signal* signal) * Get PreparedOperation struct *******************************/ PreparedOperationPtr prepOpPtr; c_runningPreparedOperations.first(prepOpPtr); while (!prepOpPtr.isNull() && prepOpPtr.i != prepareId) c_runningPreparedOperations.next(prepOpPtr); if (prepOpPtr.i != prepareId) { jam(); releaseSections(signal); sendUtilExecuteRef(signal, UtilExecuteRef::IllegalPrepareId, 0, clientRef, clientData); return; } c_preparedOperationPool.getPtr(prepOpPtr, prepareId); prepOpPtr.p->releaseFlag = releaseFlag; Loading