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
4164c2a0
Commit
4164c2a0
authored
Mar 24, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#18295
rewrite/clean up code a bit to avoid a gcc4 compiler bug
parent
ae1bb1bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
15 deletions
+20
-15
storage/ndb/src/kernel/vm/DLFifoList.hpp
storage/ndb/src/kernel/vm/DLFifoList.hpp
+8
-7
storage/ndb/src/kernel/vm/DLList.hpp
storage/ndb/src/kernel/vm/DLList.hpp
+6
-4
storage/ndb/src/kernel/vm/SLList.hpp
storage/ndb/src/kernel/vm/SLList.hpp
+6
-4
No files found.
storage/ndb/src/kernel/vm/DLFifoList.hpp
View file @
4164c2a0
...
...
@@ -312,15 +312,16 @@ inline
void
DLFifoListImpl
<
P
,
T
,
U
>::
release
()
{
Ptr
<
T
>
p
;
while
(
head
.
firstItem
!=
RNIL
)
Ptr
<
T
>
ptr
;
Uint32
curr
=
head
.
firstItem
;
while
(
curr
!=
RNIL
)
{
p
.
i
=
head
.
firstItem
;
p
.
p
=
thePool
.
getPtr
(
head
.
firstItem
);
T
*
t
=
p
.
p
;
head
.
firstItem
=
t
->
U
::
nextList
;
release
(
p
);
thePool
.
getPtr
(
ptr
,
curr
);
curr
=
ptr
.
p
->
U
::
nextList
;
thePool
.
release
(
ptr
);
}
head
.
firstItem
=
RNIL
;
head
.
lastItem
=
RNIL
;
}
template
<
typename
P
,
typename
T
,
typename
U
>
...
...
storage/ndb/src/kernel/vm/DLList.hpp
View file @
4164c2a0
...
...
@@ -332,13 +332,15 @@ void
DLListImpl
<
P
,
T
,
U
>::
release
()
{
Ptr
<
T
>
ptr
;
while
((
ptr
.
i
=
head
.
firstItem
)
!=
RNIL
)
Uint32
curr
=
head
.
firstItem
;
while
(
curr
!=
RNIL
)
{
thePool
.
getPtr
(
ptr
);
head
.
firstItem
=
ptr
.
p
->
U
::
nextList
;
thePool
.
getPtr
(
ptr
,
curr
);
curr
=
ptr
.
p
->
U
::
nextList
;
thePool
.
release
(
ptr
);
}
}
head
.
firstItem
=
RNIL
;
}
template
<
typename
P
,
typename
T
,
typename
U
>
inline
...
...
storage/ndb/src/kernel/vm/SLList.hpp
View file @
4164c2a0
...
...
@@ -302,13 +302,15 @@ void
SLListImpl
<
P
,
T
,
U
>::
release
()
{
Ptr
<
T
>
ptr
;
while
((
ptr
.
i
=
head
.
firstItem
)
!=
RNIL
)
Uint32
curr
=
head
.
firstItem
;
while
(
curr
!=
RNIL
)
{
thePool
.
getPtr
(
ptr
);
head
.
firstItem
=
ptr
.
p
->
U
::
nextList
;
thePool
.
getPtr
(
ptr
,
curr
);
curr
=
ptr
.
p
->
U
::
nextList
;
thePool
.
release
(
ptr
);
}
}
head
.
firstItem
=
RNIL
;
}
template
<
typename
P
,
typename
T
,
typename
U
>
inline
...
...
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