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
cd8b5d7e
Commit
cd8b5d7e
authored
Apr 17, 2013
by
Zardosht Kasheff
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5802, fix some math
git-svn-id:
file:///svn/toku/tokudb@51192
c7de825b-a66e-492c-adef-691d508d4ae1
parent
97d8311d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ft/cachetable.cc
ft/cachetable.cc
+1
-1
No files found.
ft/cachetable.cc
View file @
cd8b5d7e
...
...
@@ -3767,7 +3767,7 @@ bool evictor::run_eviction_on_pair(PAIR curr_in_clock) {
curr_in_clock
->
count
--
;
}
else
{
// generate a random number between 0 and 2^16
assert
(
size_current
<
(
(
int64_t
)
1
<<
48
));
// to protect against possible overflows
assert
(
size_current
<
(
1LL
<<
48
));
// to protect against possible overflows
int32_t
rnd
=
myrandom_r
(
&
m_random_data
)
%
(
1
<<
16
);
// The if-statement below will be true with probability of
// curr_size/(average size of PAIR in cachetable)
...
...
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