Commit ebeb25a8 authored by Yoni Fogel's avatar Yoni Fogel

Closes #1969 closes[t:1969] Fix assertion in round_to_page

git-svn-id: file:///svn/toku/tokudb@14570 c7de825b-a66e-492c-adef-691d508d4ae1
parent af8f5eb9
......@@ -42,7 +42,7 @@ round_to_page (size_t size) {
const size_t result = PAGE_SIZE+((size-1)&~(PAGE_SIZE-1));
assert(0==(result&(PAGE_SIZE-1))); // make sure it's aligned
assert(result>=size); // make sure it's not too small
assert(size<result+PAGE_SIZE); // make sure we didn't grow by more than a page.
assert(result<size+PAGE_SIZE); // make sure we didn't grow by more than a page.
return result;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment