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
1d200a90
Commit
1d200a90
authored
Jun 05, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - dbacc -
fix gcc4 compile error
parent
22626ad2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
19 deletions
+27
-19
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+21
-19
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+6
-0
No files found.
storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
View file @
1d200a90
...
...
@@ -1262,27 +1262,29 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp)
ptrCheckGuard
(
nextOp
,
coprecsize
,
operationrec
);
nextbits
=
nextOp
.
p
->
m_op_bits
;
bool
same
=
nextOp
.
p
->
is_same_trans
(
lastOp
.
p
);
if
(
!
same
&&
((
opbits
&
Operationrec
::
OP_ACC_LOCK_MODE
)
||
(
nextbits
&
Operationrec
::
OP_LOCK_MODE
)))
{
jam
();
const
bool
same
=
nextOp
.
p
->
is_same_trans
(
lastOp
.
p
);
if
(
!
same
&&
((
opbits
&
Operationrec
::
OP_ACC_LOCK_MODE
)
||
(
nextbits
&
Operationrec
::
OP_LOCK_MODE
)))
{
jam
();
/**
* Not same transaction
* and either last had exclusive lock
* or next had exclusive lock
*/
return
;
}
/**
* Not same transaction
* and either last had exclusive lock
* or next had exclusive lock
* same trans and X-lock
*/
return
;
}
/**
* same trans and X-lock
*/
if
(
same
&&
(
opbits
&
Operationrec
::
OP_ACC_LOCK_MODE
))
{
jam
();
goto
upgrade
;
if
(
same
&&
(
opbits
&
Operationrec
::
OP_ACC_LOCK_MODE
))
{
jam
();
goto
upgrade
;
}
}
/**
...
...
@@ -1294,7 +1296,7 @@ Dbacc::startNext(Signal* signal, OperationrecPtr lastOp)
jam
();
goto
upgrade
;
}
/**
* There is a shared parallell queue & and exclusive op is first in queue
*/
...
...
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
1d200a90
...
...
@@ -9063,6 +9063,7 @@ Dblqh::readPrimaryKeys(ScanRecord *scanP, TcConnectionrec *tcConP, Uint32 *dst)
}
int
ret
=
c_tup
->
accReadPk
(
tableId
,
fragId
,
fragPageId
,
pageIndex
,
dst
,
false
);
jamEntry
();
if
(
0
)
ndbout_c
(
"readPrimaryKeys(table: %d fragment: %d [ %d %d ] -> %d"
,
tableId
,
fragId
,
fragPageId
,
pageIndex
,
ret
);
...
...
@@ -9434,6 +9435,11 @@ Uint32 Dblqh::initScanrec(const ScanFragReq* scanFragReq)
scanptr
.
p
->
m_max_batch_size_rows
=
max_rows
;
scanptr
.
p
->
m_max_batch_size_bytes
=
max_bytes
;
#if 0
if (! rangeScan)
tupScan = 1;
#endif
if
(
!
rangeScan
&&
!
tupScan
)
scanptr
.
p
->
scanBlockref
=
tcConnectptr
.
p
->
tcAccBlockref
;
else
if
(
!
tupScan
)
...
...
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