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
7d5a9b8d
Commit
7d5a9b8d
authored
Aug 03, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/41-work
into perch.ndb.mysql.com:/home/jonas/src/50-work
parents
068b6770
cfd29d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
ndb/src/kernel/blocks/dbtup/DbtupPagMan.cpp
ndb/src/kernel/blocks/dbtup/DbtupPagMan.cpp
+17
-13
No files found.
ndb/src/kernel/blocks/dbtup/DbtupPagMan.cpp
View file @
7d5a9b8d
...
...
@@ -184,24 +184,28 @@ void Dbtup::allocConsPages(Uint32 noOfPagesToAllocate,
/* PROPER AMOUNT OF PAGES WERE NOT FOUND. FIND AS MUCH AS */
/* POSSIBLE. */
/* ---------------------------------------------------------------- */
for
(
Uint32
j
=
firstListToCheck
;
(
Uint32
)
~
j
;
j
--
)
{
if
(
firstListToCheck
)
{
ljam
();
if
(
cfreepageList
[
j
]
!=
RNIL
)
{
for
(
Uint32
j
=
firstListToCheck
-
1
;
(
Uint32
)
~
j
;
j
--
)
{
ljam
();
if
(
cfreepageList
[
j
]
!=
RNIL
)
{
ljam
();
/* ---------------------------------------------------------------- */
/* SOME AREA WAS FOUND, ALLOCATE ALL OF IT. */
/* ---------------------------------------------------------------- */
allocPageRef
=
cfreepageList
[
j
];
removeCommonArea
(
allocPageRef
,
j
);
noOfPagesAllocated
=
1
<<
j
;
findFreeLeftNeighbours
(
allocPageRef
,
noOfPagesAllocated
,
noOfPagesToAllocate
);
findFreeRightNeighbours
(
allocPageRef
,
noOfPagesAllocated
,
noOfPagesToAllocate
);
return
;
}
//if
}
//for
allocPageRef
=
cfreepageList
[
j
];
removeCommonArea
(
allocPageRef
,
j
);
noOfPagesAllocated
=
1
<<
j
;
findFreeLeftNeighbours
(
allocPageRef
,
noOfPagesAllocated
,
noOfPagesToAllocate
);
findFreeRightNeighbours
(
allocPageRef
,
noOfPagesAllocated
,
noOfPagesToAllocate
);
return
;
}
//if
}
//for
}
/* ---------------------------------------------------------------- */
/* NO FREE AREA AT ALL EXISTED. RETURN ZERO PAGES */
/* ---------------------------------------------------------------- */
...
...
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