Commit cec9575c authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

[t:3218] The block allocator test found the problem with the ints that should...

[t:3218] The block allocator test found the problem with the ints that should have been 64-bit. Refs #3218.

git-svn-id: file:///svn/toku/tokudb@28260 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2ba9c065
......@@ -74,8 +74,8 @@ destroy_block_allocator (BLOCK_ALLOCATOR *bap) {
static void
grow_blocks_array_by (BLOCK_ALLOCATOR ba, u_int64_t n_to_add) {
if (ba->n_blocks + n_to_add > ba->blocks_array_size) {
int new_size = ba->n_blocks + n_to_add;
int at_least = ba->blocks_array_size * 2;
u_int64_t new_size = ba->n_blocks + n_to_add;
u_int64_t at_least = ba->blocks_array_size * 2;
if (at_least > new_size) {
new_size = at_least;
}
......
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