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
5883b9a2
Commit
5883b9a2
authored
Jul 03, 2014
by
John Esmet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FT-302 Correctly use the new interface (oops)
parent
0acaea98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ft/serialize/block_allocator.cc
ft/serialize/block_allocator.cc
+1
-1
No files found.
ft/serialize/block_allocator.cc
View file @
5883b9a2
...
@@ -285,7 +285,7 @@ void block_allocator::alloc_block(uint64_t size, uint64_t *offset) {
...
@@ -285,7 +285,7 @@ void block_allocator::alloc_block(uint64_t size, uint64_t *offset) {
return
;
return
;
}
}
struct
blockpair
*
bp
=
choose_block_
first_fit_strategy
(
_blocks_array
,
_n_blocks
,
size
,
_alignment
);
struct
blockpair
*
bp
=
choose_block_
to_alloc_after
(
size
);
if
(
bp
!=
nullptr
)
{
if
(
bp
!=
nullptr
)
{
// our allocation strategy chose the space after `bp' to fit the new block
// our allocation strategy chose the space after `bp' to fit the new block
uint64_t
answer_offset
=
align
(
bp
->
offset
+
bp
->
size
,
_alignment
);
uint64_t
answer_offset
=
align
(
bp
->
offset
+
bp
->
size
,
_alignment
);
...
...
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