MCPcopy Create free account
hub / github.com/Shannon-Data/ShannonBase / writeTuple

Method writeTuple

storage/ndb/src/ndbapi/NdbOperationDefine.cpp:76–91  ·  view source on GitHub ↗

NdbOperation::updateTuple() * int writeTuple(); *****************************************************************************/

Source from the content-addressed store, hash-verified

74 * int writeTuple();
75 *****************************************************************************/
76int NdbOperation::writeTuple() {
77 NdbTransaction *tNdbCon = theNdbCon;
78 int tErrorLine = theErrorLine;
79 if (theStatus == Init) {
80 theStatus = OperationDefined;
81 tNdbCon->theSimpleState = 0;
82 theOperationType = WriteRequest;
83 theErrorLine = tErrorLine++;
84 theLockMode = LM_Exclusive;
85 m_abortOption = AbortOnError;
86 return 0;
87 } else {
88 setErrorCode(4200);
89 return -1;
90 } // if
91} // NdbOperation::writeTuple()
92/*****************************************************************************
93 * int deleteTuple();
94 *****************************************************************************/

Callers 1

getWriteOperationMethod · 0.95

Calls 1

setErrorCodeFunction · 0.85

Tested by

no test coverage detected