Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1d965d98
Commit
1d965d98
authored
May 27, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix AttrType moves
parent
0b462360
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
65 deletions
+63
-65
ndb/src/ndbapi/Makefile.am
ndb/src/ndbapi/Makefile.am
+1
-2
ndb/src/ndbapi/NdbConnection.cpp
ndb/src/ndbapi/NdbConnection.cpp
+21
-21
ndb/src/ndbapi/NdbScanOperation.cpp
ndb/src/ndbapi/NdbScanOperation.cpp
+4
-4
ndb/src/ndbapi/Ndbif.cpp
ndb/src/ndbapi/Ndbif.cpp
+37
-38
No files found.
ndb/src/ndbapi/Makefile.am
View file @
1d965d98
...
@@ -22,8 +22,7 @@ libndbapi_la_SOURCES_loc = \
...
@@ -22,8 +22,7 @@ libndbapi_la_SOURCES_loc = \
NdbOperationDefine.cpp
\
NdbOperationDefine.cpp
\
NdbOperationExec.cpp
\
NdbOperationExec.cpp
\
NdbResultSet.cpp
\
NdbResultSet.cpp
\
NdbCursorOperation.cpp
\
NdbScanOperation.cpp NdbScanFilter.cpp
\
NdbScanReceiver.cpp NdbScanOperation.cpp NdbScanFilter.cpp
\
NdbIndexOperation.cpp
\
NdbIndexOperation.cpp
\
NdbEventOperation.cpp
\
NdbEventOperation.cpp
\
NdbEventOperationImpl.cpp
\
NdbEventOperationImpl.cpp
\
...
...
ndb/src/ndbapi/NdbConnection.cpp
View file @
1d965d98
...
@@ -1359,16 +1359,16 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf)
...
@@ -1359,16 +1359,16 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf)
* in committing the transaction.
* in committing the transaction.
*/
*/
switch
(
tOp
->
theOperationType
){
switch
(
tOp
->
theOperationType
){
case
UpdateRequest
:
case
NdbOperation
:
:
UpdateRequest
:
case
InsertRequest
:
case
NdbOperation
:
:
InsertRequest
:
case
DeleteRequest
:
case
NdbOperation
:
:
DeleteRequest
:
case
WriteRequest
:
case
NdbOperation
:
:
WriteRequest
:
tOp
=
tOp
->
next
();
tOp
=
tOp
->
next
();
break
;
break
;
case
ReadRequest
:
case
NdbOperation
:
:
ReadRequest
:
case
ReadExclusive
:
case
NdbOperation
:
:
ReadExclusive
:
case
OpenScanRequest
:
case
NdbOperation
:
:
OpenScanRequest
:
case
OpenRangeScanRequest
:
case
NdbOperation
:
:
OpenRangeScanRequest
:
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
CompletedFailure
;
setOperationErrorCodeAbort
(
4115
);
setOperationErrorCodeAbort
(
4115
);
tOp
=
NULL
;
tOp
=
NULL
;
...
@@ -1403,18 +1403,18 @@ NdbConnection::receiveTCKEY_FAILREF(NdbApiSignal* aSignal)
...
@@ -1403,18 +1403,18 @@ NdbConnection::receiveTCKEY_FAILREF(NdbApiSignal* aSignal)
We received an indication of that this transaction was aborted due to a
We received an indication of that this transaction was aborted due to a
node failure.
node failure.
*/
*/
if
(
theSendStatus
==
sendTC_ROLLBACK
)
{
if
(
theSendStatus
==
NdbConnection
::
sendTC_ROLLBACK
)
{
/*
/*
We were in the process of sending a rollback anyways. We will
We were in the process of sending a rollback anyways. We will
report it as a success.
report it as a success.
*/
*/
theCompletionStatus
=
CompletedSuccess
;
theCompletionStatus
=
NdbConnection
::
CompletedSuccess
;
}
else
{
}
else
{
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
NdbConnection
::
CompletedFailure
;
theError
.
code
=
4031
;
theError
.
code
=
4031
;
}
//if
}
//if
theReleaseOnClose
=
true
;
theReleaseOnClose
=
true
;
theCommitStatus
=
Aborted
;
theCommitStatus
=
NdbConnection
::
Aborted
;
return
0
;
return
0
;
}
}
return
-
1
;
return
-
1
;
...
@@ -1463,8 +1463,8 @@ NdbConnection::receiveTCINDXCONF(const TcIndxConf * indxConf,
...
@@ -1463,8 +1463,8 @@ NdbConnection::receiveTCINDXCONF(const TcIndxConf * indxConf,
// no Commit flag set. This is clearly an anomaly.
// no Commit flag set. This is clearly an anomaly.
/**********************************************************************/
/**********************************************************************/
theError
.
code
=
4011
;
theError
.
code
=
4011
;
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
NdbConnection
::
CompletedFailure
;
theCommitStatus
=
Aborted
;
theCommitStatus
=
NdbConnection
::
Aborted
;
return
0
;
return
0
;
}
//if
}
//if
if
(
tNoComp
>=
tNoSent
)
{
if
(
tNoComp
>=
tNoSent
)
{
...
@@ -1497,8 +1497,8 @@ NdbConnection::receiveTCINDXREF( NdbApiSignal* aSignal)
...
@@ -1497,8 +1497,8 @@ NdbConnection::receiveTCINDXREF( NdbApiSignal* aSignal)
/* and we only need to report completion and return with the */
/* and we only need to report completion and return with the */
/* error code to the application. */
/* error code to the application. */
/**********************************************************************/
/**********************************************************************/
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
NdbConnection
::
CompletedFailure
;
theCommitStatus
=
Aborted
;
theCommitStatus
=
NdbConnection
::
Aborted
;
return
0
;
return
0
;
}
}
return
-
1
;
return
-
1
;
...
@@ -1517,7 +1517,7 @@ NdbConnection::OpCompleteFailure()
...
@@ -1517,7 +1517,7 @@ NdbConnection::OpCompleteFailure()
{
{
Uint32
tNoComp
=
theNoOfOpCompleted
;
Uint32
tNoComp
=
theNoOfOpCompleted
;
Uint32
tNoSent
=
theNoOfOpSent
;
Uint32
tNoSent
=
theNoOfOpSent
;
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
NdbConnection
::
CompletedFailure
;
tNoComp
++
;
tNoComp
++
;
theNoOfOpCompleted
=
tNoComp
;
theNoOfOpCompleted
=
tNoComp
;
if
(
tNoComp
==
tNoSent
)
{
if
(
tNoComp
==
tNoSent
)
{
...
@@ -1528,7 +1528,7 @@ NdbConnection::OpCompleteFailure()
...
@@ -1528,7 +1528,7 @@ NdbConnection::OpCompleteFailure()
//operation is not really part of that transaction.
//operation is not really part of that transaction.
//------------------------------------------------------------------------
//------------------------------------------------------------------------
if
(
theSimpleState
==
1
)
{
if
(
theSimpleState
==
1
)
{
theCommitStatus
=
Aborted
;
theCommitStatus
=
NdbConnection
::
Aborted
;
}
//if
}
//if
return
0
;
// Last operation received
return
0
;
// Last operation received
}
else
if
(
tNoComp
>
tNoSent
)
{
}
else
if
(
tNoComp
>
tNoSent
)
{
...
@@ -1556,7 +1556,7 @@ NdbConnection::OpCompleteSuccess()
...
@@ -1556,7 +1556,7 @@ NdbConnection::OpCompleteSuccess()
theNoOfOpCompleted
=
tNoComp
;
theNoOfOpCompleted
=
tNoComp
;
if
(
tNoComp
==
tNoSent
)
{
// Last operation completed
if
(
tNoComp
==
tNoSent
)
{
// Last operation completed
if
(
theSimpleState
==
1
)
{
if
(
theSimpleState
==
1
)
{
theCommitStatus
=
Committed
;
theCommitStatus
=
NdbConnection
::
Committed
;
}
//if
}
//if
return
0
;
return
0
;
}
else
if
(
tNoComp
<
tNoSent
)
{
}
else
if
(
tNoComp
<
tNoSent
)
{
...
@@ -1564,7 +1564,7 @@ NdbConnection::OpCompleteSuccess()
...
@@ -1564,7 +1564,7 @@ NdbConnection::OpCompleteSuccess()
}
else
{
}
else
{
setOperationErrorCodeAbort
(
4113
);
// Too many operations,
setOperationErrorCodeAbort
(
4113
);
// Too many operations,
// stop waiting for more
// stop waiting for more
theCompletionStatus
=
CompletedFailure
;
theCompletionStatus
=
NdbConnection
::
CompletedFailure
;
return
0
;
return
0
;
}
//if
}
//if
}
//NdbConnection::OpCompleteSuccess()
}
//NdbConnection::OpCompleteSuccess()
...
@@ -1577,7 +1577,7 @@ Remark: Get global checkpoint identity of the transaction
...
@@ -1577,7 +1577,7 @@ Remark: Get global checkpoint identity of the transaction
int
int
NdbConnection
::
getGCI
()
NdbConnection
::
getGCI
()
{
{
if
(
theCommitStatus
==
Committed
)
{
if
(
theCommitStatus
==
NdbConnection
::
Committed
)
{
return
theGlobalCheckpointId
;
return
theGlobalCheckpointId
;
}
//if
}
//if
return
0
;
return
0
;
...
...
ndb/src/ndbapi/NdbScanOperation.cpp
View file @
1d965d98
...
@@ -439,7 +439,7 @@ NdbScanOperation::executeCursor(int nodeId){
...
@@ -439,7 +439,7 @@ NdbScanOperation::executeCursor(int nodeId){
TRACE_DEBUG
(
"The node is stopping when attempting to start a scan"
);
TRACE_DEBUG
(
"The node is stopping when attempting to start a scan"
);
setErrorCode
(
4030
);
setErrorCode
(
4030
);
}
//if
}
//if
tCon
->
theCommitStatus
=
Aborted
;
tCon
->
theCommitStatus
=
NdbConnection
::
Aborted
;
}
//if
}
//if
return
-
1
;
return
-
1
;
}
}
...
@@ -709,8 +709,8 @@ NdbScanOperation::execCLOSE_SCAN_REP(Uint32 errCode){
...
@@ -709,8 +709,8 @@ NdbScanOperation::execCLOSE_SCAN_REP(Uint32 errCode){
/**
/**
* Normal termination
* Normal termination
*/
*/
theNdbCon
->
theCommitStatus
=
Committed
;
theNdbCon
->
theCommitStatus
=
NdbConnection
::
Committed
;
theNdbCon
->
theCompletionStatus
=
CompletedSuccess
;
theNdbCon
->
theCompletionStatus
=
NdbConnection
::
CompletedSuccess
;
}
else
{
}
else
{
/**
/**
* Something is fishy
* Something is fishy
...
@@ -1111,7 +1111,7 @@ NdbIndexScanOperation::fix_get_values(){
...
@@ -1111,7 +1111,7 @@ NdbIndexScanOperation::fix_get_values(){
NdbRecAttr
*
curr
=
theReceiver
.
theFirstRecAttr
;
NdbRecAttr
*
curr
=
theReceiver
.
theFirstRecAttr
;
Uint32
cnt
=
m_sort_columns
;
Uint32
cnt
=
m_sort_columns
;
assert
(
cnt
<
MAXNROFTUPLE
KEY
);
assert
(
cnt
<
NDB_MAX_NO_OF_ATTRIBUTES_IN_
KEY
);
Uint32
idx
=
0
;
Uint32
idx
=
0
;
NdbTableImpl
*
tab
=
m_currentTable
;
NdbTableImpl
*
tab
=
m_currentTable
;
...
...
ndb/src/ndbapi/Ndbif.cpp
View file @
1d965d98
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment