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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
5821d2ea
Commit
5821d2ea
authored
Aug 15, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1) Removed to hard require
2) Fix variable scope for irix compiler
parent
f8778b2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+9
-1
ndb/test/src/NDBT_Tables.cpp
ndb/test/src/NDBT_Tables.cpp
+1
-1
No files found.
ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
5821d2ea
...
@@ -5912,10 +5912,18 @@ void Dblqh::execACCKEYREF(Signal* signal)
...
@@ -5912,10 +5912,18 @@ void Dblqh::execACCKEYREF(Signal* signal)
* Only primary replica can get ZTUPLE_ALREADY_EXIST || ZNO_TUPLE_FOUND
* Only primary replica can get ZTUPLE_ALREADY_EXIST || ZNO_TUPLE_FOUND
*
*
* Unless it's a simple or dirty read
* Unless it's a simple or dirty read
*
* NOT TRUE!
* 1) op1 - primary insert ok
* 2) op1 - backup insert fail (log full or what ever)
* 3) op1 - delete ok @ primary
* 4) op1 - delete fail @ backup
*
* -> ZNO_TUPLE_FOUND is possible
*/
*/
ndbrequire
ndbrequire
(
tcPtr
->
seqNoReplica
==
0
||
(
tcPtr
->
seqNoReplica
==
0
||
(
errCode
!=
ZTUPLE_ALREADY_EXIST
&&
errCode
!=
ZNO_TUPLE_FOUND
)
||
errCode
!=
ZTUPLE_ALREADY_EXIST
||
(
tcPtr
->
operation
==
ZREAD
&&
(
tcPtr
->
dirtyOp
||
tcPtr
->
opSimple
)));
(
tcPtr
->
operation
==
ZREAD
&&
(
tcPtr
->
dirtyOp
||
tcPtr
->
opSimple
)));
}
}
tcPtr
->
abortState
=
TcConnectionrec
::
ABORT_FROM_LQH
;
tcPtr
->
abortState
=
TcConnectionrec
::
ABORT_FROM_LQH
;
...
...
ndb/test/src/NDBT_Tables.cpp
View file @
5821d2ea
...
@@ -849,7 +849,7 @@ NDBT_Tables::createTable(Ndb* pNdb, const char* _name, bool _temp,
...
@@ -849,7 +849,7 @@ NDBT_Tables::createTable(Ndb* pNdb, const char* _name, bool _temp,
}
}
Uint32
i
=
0
;
Uint32
i
=
0
;
for
(
Uint32
i
=
0
;
indexes
[
i
].
m_table
!=
0
;
i
++
){
for
(
i
=
0
;
indexes
[
i
].
m_table
!=
0
;
i
++
){
if
(
strcmp
(
indexes
[
i
].
m_table
,
_name
)
!=
0
)
if
(
strcmp
(
indexes
[
i
].
m_table
,
_name
)
!=
0
)
continue
;
continue
;
Uint32
j
=
0
;
Uint32
j
=
0
;
...
...
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