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
6a0eac84
Commit
6a0eac84
authored
Jan 12, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb -
fix Suma get buffer ptr, adopt to new page pool in tup
parent
c87e9032
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
storage/ndb/src/kernel/blocks/suma/Suma.cpp
storage/ndb/src/kernel/blocks/suma/Suma.cpp
+8
-2
No files found.
storage/ndb/src/kernel/blocks/suma/Suma.cpp
View file @
6a0eac84
...
@@ -4093,8 +4093,14 @@ Suma::get_buffer_ptr(Signal* signal, Uint32 buck, Uint32 gci, Uint32 sz)
...
@@ -4093,8 +4093,14 @@ Suma::get_buffer_ptr(Signal* signal, Uint32 buck, Uint32 gci, Uint32 sz)
Bucket
*
bucket
=
c_buckets
+
buck
;
Bucket
*
bucket
=
c_buckets
+
buck
;
Page_pos
pos
=
bucket
->
m_buffer_head
;
Page_pos
pos
=
bucket
->
m_buffer_head
;
Buffer_page
*
page
=
(
Buffer_page
*
)
m_tup
->
c_page_pool
.
getPtr
(
pos
.
m_page_id
);
Buffer_page
*
page
=
0
;
Uint32
*
ptr
=
page
->
m_data
+
pos
.
m_page_pos
;
Uint32
*
ptr
=
0
;
if
(
likely
(
pos
.
m_page_id
!=
RNIL
))
{
page
=
(
Buffer_page
*
)
m_tup
->
c_page_pool
.
getPtr
(
pos
.
m_page_id
);
ptr
=
page
->
m_data
+
pos
.
m_page_pos
;
}
const
bool
same_gci
=
(
gci
==
pos
.
m_last_gci
)
&&
(
!
ERROR_INSERTED
(
13022
));
const
bool
same_gci
=
(
gci
==
pos
.
m_last_gci
)
&&
(
!
ERROR_INSERTED
(
13022
));
...
...
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