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
b5631897
Commit
b5631897
authored
Jan 12, 2006
by
knielsen@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1-new
into mysql.com:/usr/local/mysql/tmpbuild-5.1
parents
4cc78e19
e533cfe6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
26 deletions
+28
-26
storage/ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
+1
-1
storage/ndb/src/kernel/blocks/dbtup/DbtupFixAlloc.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupFixAlloc.cpp
+2
-2
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
+4
-4
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
+1
-1
storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
+18
-18
storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp
storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp
+2
-0
No files found.
storage/ndb/src/kernel/blocks/dbtup/DbtupBuffer.cpp
View file @
b5631897
...
@@ -132,7 +132,7 @@ void Dbtup::updatePackedList(Signal* signal, Uint16 hostId)
...
@@ -132,7 +132,7 @@ void Dbtup::updatePackedList(Signal* signal, Uint16 hostId)
void
Dbtup
::
sendReadAttrinfo
(
Signal
*
signal
,
void
Dbtup
::
sendReadAttrinfo
(
Signal
*
signal
,
KeyReqStruct
*
req_struct
,
KeyReqStruct
*
req_struct
,
Uint32
ToutBufIndex
,
Uint32
ToutBufIndex
,
const
Operationrec
*
const
regOperPtr
)
const
Operationrec
*
regOperPtr
)
{
{
if
(
ToutBufIndex
==
0
)
if
(
ToutBufIndex
==
0
)
return
;
return
;
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupFixAlloc.cpp
View file @
b5631897
...
@@ -242,8 +242,8 @@ Dbtup::alloc_page(Tablerec* tabPtrP, Fragrecord* fragPtrP,
...
@@ -242,8 +242,8 @@ Dbtup::alloc_page(Tablerec* tabPtrP, Fragrecord* fragPtrP,
}
}
Uint32
*
Uint32
*
Dbtup
::
alloc_fix_rowid
(
Fragrecord
*
const
regFragPtr
,
Dbtup
::
alloc_fix_rowid
(
Fragrecord
*
regFragPtr
,
Tablerec
*
const
regTabPtr
,
Tablerec
*
regTabPtr
,
Local_key
*
key
,
Local_key
*
key
,
Uint32
*
out_frag_page_id
)
Uint32
*
out_frag_page_id
)
{
{
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupPageMap.cpp
View file @
b5631897
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
//
//
// The full page range struct
// The full page range struct
Uint32
Dbtup
::
getEmptyPage
(
Fragrecord
*
const
regFragPtr
)
Uint32
Dbtup
::
getEmptyPage
(
Fragrecord
*
regFragPtr
)
{
{
Uint32
pageId
=
regFragPtr
->
emptyPrimPage
.
firstItem
;
Uint32
pageId
=
regFragPtr
->
emptyPrimPage
.
firstItem
;
if
(
pageId
==
RNIL
)
{
if
(
pageId
==
RNIL
)
{
...
@@ -108,7 +108,7 @@ Uint32 Dbtup::getEmptyPage(Fragrecord* const regFragPtr)
...
@@ -108,7 +108,7 @@ Uint32 Dbtup::getEmptyPage(Fragrecord* const regFragPtr)
return
pageId
;
return
pageId
;
}
//Dbtup::getEmptyPage()
}
//Dbtup::getEmptyPage()
Uint32
Dbtup
::
getRealpid
(
Fragrecord
*
const
regFragPtr
,
Uint32
logicalPageId
)
Uint32
Dbtup
::
getRealpid
(
Fragrecord
*
regFragPtr
,
Uint32
logicalPageId
)
{
{
PageRangePtr
grpPageRangePtr
;
PageRangePtr
grpPageRangePtr
;
Uint32
loopLimit
;
Uint32
loopLimit
;
...
@@ -241,7 +241,7 @@ bool Dbtup::insertPageRangeTab(Fragrecord* const regFragPtr,
...
@@ -241,7 +241,7 @@ bool Dbtup::insertPageRangeTab(Fragrecord* const regFragPtr,
}
//Dbtup::insertPageRangeTab()
}
//Dbtup::insertPageRangeTab()
void
Dbtup
::
releaseFragPages
(
Fragrecord
*
const
regFragPtr
)
void
Dbtup
::
releaseFragPages
(
Fragrecord
*
regFragPtr
)
{
{
if
(
regFragPtr
->
rootPageRange
==
RNIL
)
{
if
(
regFragPtr
->
rootPageRange
==
RNIL
)
{
ljam
();
ljam
();
...
@@ -349,7 +349,7 @@ void Dbtup::initFragRange(Fragrecord* const regFragPtr)
...
@@ -349,7 +349,7 @@ void Dbtup::initFragRange(Fragrecord* const regFragPtr)
regFragPtr
->
nextStartRange
=
0
;
regFragPtr
->
nextStartRange
=
0
;
}
//initFragRange()
}
//initFragRange()
Uint32
Dbtup
::
allocFragPages
(
Fragrecord
*
const
regFragPtr
,
Uint32
tafpNoAllocRequested
)
Uint32
Dbtup
::
allocFragPages
(
Fragrecord
*
regFragPtr
,
Uint32
tafpNoAllocRequested
)
{
{
Uint32
tafpPagesAllocated
=
0
;
Uint32
tafpPagesAllocated
=
0
;
while
(
true
)
{
while
(
true
)
{
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
View file @
b5631897
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define ljamEntry() { jamEntryLine(3000 + __LINE__); }
#define ljamEntry() { jamEntryLine(3000 + __LINE__); }
void
void
Dbtup
::
setUpQueryRoutines
(
Tablerec
*
const
regTabPtr
)
Dbtup
::
setUpQueryRoutines
(
Tablerec
*
regTabPtr
)
{
{
Uint32
startDescriptor
=
regTabPtr
->
tabDescriptor
;
Uint32
startDescriptor
=
regTabPtr
->
tabDescriptor
;
ndbrequire
((
startDescriptor
+
(
regTabPtr
->
m_no_of_attributes
<<
ZAD_LOG_SIZE
))
ndbrequire
((
startDescriptor
+
(
regTabPtr
->
m_no_of_attributes
<<
ZAD_LOG_SIZE
))
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp
View file @
b5631897
...
@@ -356,8 +356,8 @@ Dbtup::dropTrigger(Tablerec* table, const DropTrigReq* req)
...
@@ -356,8 +356,8 @@ Dbtup::dropTrigger(Tablerec* table, const DropTrigReq* req)
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
void
void
Dbtup
::
checkImmediateTriggersAfterInsert
(
KeyReqStruct
*
req_struct
,
Dbtup
::
checkImmediateTriggersAfterInsert
(
KeyReqStruct
*
req_struct
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Tablerec
*
const
regTablePtr
)
Tablerec
*
regTablePtr
)
{
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
return
;
return
;
...
@@ -374,8 +374,8 @@ Dbtup::checkImmediateTriggersAfterInsert(KeyReqStruct *req_struct,
...
@@ -374,8 +374,8 @@ Dbtup::checkImmediateTriggersAfterInsert(KeyReqStruct *req_struct,
void
void
Dbtup
::
checkImmediateTriggersAfterUpdate
(
KeyReqStruct
*
req_struct
,
Dbtup
::
checkImmediateTriggersAfterUpdate
(
KeyReqStruct
*
req_struct
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Tablerec
*
const
regTablePtr
)
Tablerec
*
regTablePtr
)
{
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
return
;
return
;
...
@@ -399,8 +399,8 @@ Dbtup::checkImmediateTriggersAfterUpdate(KeyReqStruct *req_struct,
...
@@ -399,8 +399,8 @@ Dbtup::checkImmediateTriggersAfterUpdate(KeyReqStruct *req_struct,
void
void
Dbtup
::
checkImmediateTriggersAfterDelete
(
KeyReqStruct
*
req_struct
,
Dbtup
::
checkImmediateTriggersAfterDelete
(
KeyReqStruct
*
req_struct
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Tablerec
*
const
regTablePtr
)
Tablerec
*
regTablePtr
)
{
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
if
(
refToBlock
(
req_struct
->
TC_ref
)
!=
DBTC
)
{
return
;
return
;
...
@@ -444,8 +444,8 @@ void Dbtup::checkDeferredTriggers(Signal* signal,
...
@@ -444,8 +444,8 @@ void Dbtup::checkDeferredTriggers(Signal* signal,
/* */
/* */
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
void
Dbtup
::
checkDetachedTriggers
(
KeyReqStruct
*
req_struct
,
void
Dbtup
::
checkDetachedTriggers
(
KeyReqStruct
*
req_struct
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Tablerec
*
const
regTablePtr
)
Tablerec
*
regTablePtr
)
{
{
Uint32
save_type
=
regOperPtr
->
op_struct
.
op_type
;
Uint32
save_type
=
regOperPtr
->
op_struct
.
op_type
;
Tuple_header
*
save_ptr
=
req_struct
->
m_tuple_ptr
;
Tuple_header
*
save_ptr
=
req_struct
->
m_tuple_ptr
;
...
@@ -1049,9 +1049,9 @@ void Dbtup::sendFireTrigOrd(Signal* signal,
...
@@ -1049,9 +1049,9 @@ void Dbtup::sendFireTrigOrd(Signal* signal,
int
int
Dbtup
::
executeTuxInsertTriggers
(
Signal
*
signal
,
Dbtup
::
executeTuxInsertTriggers
(
Signal
*
signal
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Fragrecord
*
const
regFragPtr
,
Fragrecord
*
regFragPtr
,
Tablerec
*
const
regTabPtr
)
Tablerec
*
regTabPtr
)
{
{
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
// fill in constant part
// fill in constant part
...
@@ -1066,9 +1066,9 @@ Dbtup::executeTuxInsertTriggers(Signal* signal,
...
@@ -1066,9 +1066,9 @@ Dbtup::executeTuxInsertTriggers(Signal* signal,
int
int
Dbtup
::
executeTuxUpdateTriggers
(
Signal
*
signal
,
Dbtup
::
executeTuxUpdateTriggers
(
Signal
*
signal
,
Operationrec
*
const
regOperPtr
,
Operationrec
*
regOperPtr
,
Fragrecord
*
const
regFragPtr
,
Fragrecord
*
regFragPtr
,
Tablerec
*
const
regTabPtr
)
Tablerec
*
regTabPtr
)
{
{
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
// fill in constant part
// fill in constant part
...
@@ -1139,8 +1139,8 @@ Dbtup::executeTuxDeleteTriggers(Signal* signal,
...
@@ -1139,8 +1139,8 @@ Dbtup::executeTuxDeleteTriggers(Signal* signal,
void
void
Dbtup
::
executeTuxCommitTriggers
(
Signal
*
signal
,
Dbtup
::
executeTuxCommitTriggers
(
Signal
*
signal
,
Operationrec
*
regOperPtr
,
Operationrec
*
regOperPtr
,
Fragrecord
*
const
regFragPtr
,
Fragrecord
*
regFragPtr
,
Tablerec
*
const
regTabPtr
)
Tablerec
*
regTabPtr
)
{
{
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
Uint32
tupVersion
;
Uint32
tupVersion
;
...
@@ -1174,8 +1174,8 @@ Dbtup::executeTuxCommitTriggers(Signal* signal,
...
@@ -1174,8 +1174,8 @@ Dbtup::executeTuxCommitTriggers(Signal* signal,
void
void
Dbtup
::
executeTuxAbortTriggers
(
Signal
*
signal
,
Dbtup
::
executeTuxAbortTriggers
(
Signal
*
signal
,
Operationrec
*
regOperPtr
,
Operationrec
*
regOperPtr
,
Fragrecord
*
const
regFragPtr
,
Fragrecord
*
regFragPtr
,
Tablerec
*
const
regTabPtr
)
Tablerec
*
regTabPtr
)
{
{
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
TuxMaintReq
*
const
req
=
(
TuxMaintReq
*
)
signal
->
getDataPtrSend
();
// get version
// get version
...
...
storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp
View file @
b5631897
...
@@ -83,6 +83,8 @@ Ndbd_mem_manager::init(Uint32 pages)
...
@@ -83,6 +83,8 @@ Ndbd_mem_manager::init(Uint32 pages)
release
(
start
+
1
,
end
-
1
-
start
);
release
(
start
+
1
,
end
-
1
-
start
);
}
}
return
0
;
}
}
void
void
...
...
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