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
cbc42c93
Commit
cbc42c93
authored
Mar 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents
850bf048
c029dda8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp
storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp
+1
-1
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+15
-4
No files found.
storage/ndb/src/kernel/blocks/dbacc/Dbacc.hpp
View file @
cbc42c93
...
@@ -760,7 +760,7 @@ private:
...
@@ -760,7 +760,7 @@ private:
void
increaselistcont
(
Signal
*
signal
);
void
increaselistcont
(
Signal
*
signal
);
void
seizeLeftlist
(
Signal
*
signal
);
void
seizeLeftlist
(
Signal
*
signal
);
void
seizeRightlist
(
Signal
*
signal
);
void
seizeRightlist
(
Signal
*
signal
);
Uint32
readTablePk
(
Uint32
localkey1
,
Uint32
eh
,
const
Operationrec
*
);
Uint32
readTablePk
(
Uint32
localkey1
,
Uint32
eh
,
OperationrecPtr
);
Uint32
getElement
(
Signal
*
signal
,
OperationrecPtr
&
lockOwner
);
Uint32
getElement
(
Signal
*
signal
,
OperationrecPtr
&
lockOwner
);
void
getdirindex
(
Signal
*
signal
);
void
getdirindex
(
Signal
*
signal
);
void
commitdelete
(
Signal
*
signal
);
void
commitdelete
(
Signal
*
signal
);
...
...
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
cbc42c93
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
ndbrequire(false); } } while(0)
ndbrequire(false); } } while(0)
#else
#else
#define vlqrequire(x) ndbrequire(x)
#define vlqrequire(x) ndbrequire(x)
#define dump_lock_queue(x)
#endif
#endif
...
@@ -3182,7 +3183,7 @@ void Dbacc::getdirindex(Signal* signal)
...
@@ -3182,7 +3183,7 @@ void Dbacc::getdirindex(Signal* signal)
}
//Dbacc::getdirindex()
}
//Dbacc::getdirindex()
Uint32
Uint32
Dbacc
::
readTablePk
(
Uint32
localkey1
,
Uint32
eh
,
const
Operationrec
*
op
)
Dbacc
::
readTablePk
(
Uint32
localkey1
,
Uint32
eh
,
Ptr
<
Operationrec
>
opPtr
)
{
{
int
ret
;
int
ret
;
Uint32
tableId
=
fragrecptr
.
p
->
myTableId
;
Uint32
tableId
=
fragrecptr
.
p
->
myTableId
;
...
@@ -3203,8 +3204,17 @@ Dbacc::readTablePk(Uint32 localkey1, Uint32 eh, const Operationrec* op)
...
@@ -3203,8 +3204,17 @@ Dbacc::readTablePk(Uint32 localkey1, Uint32 eh, const Operationrec* op)
else
else
{
{
ndbrequire
(
ElementHeader
::
getLocked
(
eh
));
ndbrequire
(
ElementHeader
::
getLocked
(
eh
));
ndbrequire
((
op
->
m_op_bits
&
Operationrec
::
OP_MASK
)
!=
ZSCAN_OP
);
if
(
unlikely
((
opPtr
.
p
->
m_op_bits
&
Operationrec
::
OP_MASK
)
==
ZSCAN_OP
))
ret
=
c_lqh
->
readPrimaryKeys
(
op
->
userptr
,
ckeys
,
xfrm
);
{
dump_lock_queue
(
opPtr
);
ndbrequire
(
opPtr
.
p
->
nextParallelQue
==
RNIL
);
ndbrequire
(
opPtr
.
p
->
nextSerialQue
==
RNIL
);
ndbrequire
(
opPtr
.
p
->
m_op_bits
&
Operationrec
::
OP_ELEMENT_DISAPPEARED
);
ndbrequire
(
opPtr
.
p
->
m_op_bits
&
Operationrec
::
OP_COMMIT_DELETE_CHECK
);
ndbrequire
((
opPtr
.
p
->
m_op_bits
&
Operationrec
::
OP_STATE_MASK
)
==
Operationrec
::
OP_STATE_RUNNING
);
return
0
;
}
ret
=
c_lqh
->
readPrimaryKeys
(
opPtr
.
p
->
userptr
,
ckeys
,
xfrm
);
}
}
jamEntry
();
jamEntry
();
ndbrequire
(
ret
>=
0
);
ndbrequire
(
ret
>=
0
);
...
@@ -3349,7 +3359,7 @@ Dbacc::getElement(Signal* signal, OperationrecPtr& lockOwnerPtr)
...
@@ -3349,7 +3359,7 @@ Dbacc::getElement(Signal* signal, OperationrecPtr& lockOwnerPtr)
if
(
!
searchLocalKey
)
if
(
!
searchLocalKey
)
{
{
Uint32
len
=
readTablePk
(
localkey1
,
tgeElementHeader
,
Uint32
len
=
readTablePk
(
localkey1
,
tgeElementHeader
,
lockOwnerPtr
.
p
);
lockOwnerPtr
);
found
=
(
len
==
operationRecPtr
.
p
->
xfrmtupkeylen
)
&&
found
=
(
len
==
operationRecPtr
.
p
->
xfrmtupkeylen
)
&&
(
memcmp
(
Tkeydata
,
ckeys
,
len
<<
2
)
==
0
);
(
memcmp
(
Tkeydata
,
ckeys
,
len
<<
2
)
==
0
);
}
else
{
}
else
{
...
@@ -6864,6 +6874,7 @@ void Dbacc::execACC_TO_REQ(Signal* signal)
...
@@ -6864,6 +6874,7 @@ void Dbacc::execACC_TO_REQ(Signal* signal)
{
{
tatrOpPtr
.
p
->
transId1
=
signal
->
theData
[
2
];
tatrOpPtr
.
p
->
transId1
=
signal
->
theData
[
2
];
tatrOpPtr
.
p
->
transId2
=
signal
->
theData
[
3
];
tatrOpPtr
.
p
->
transId2
=
signal
->
theData
[
3
];
validate_lock_queue
(
tatrOpPtr
);
}
else
{
}
else
{
jam
();
jam
();
signal
->
theData
[
0
]
=
cminusOne
;
signal
->
theData
[
0
]
=
cminusOne
;
...
...
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