Skip to content

Commit

Permalink
redblack_cache_ancestors is enabled only when mmap is available
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 9, 2024
1 parent 8bd6ae4 commit d224bfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shape.c
Expand Up @@ -118,6 +118,7 @@ redblack_value(redblack_node_t * node)
return (rb_shape_t *)((uintptr_t)node->value & (((uintptr_t)-1) - 1));
}

#ifdef HAVE_MMAP
static redblack_id_t
redblack_id_for(redblack_node_t * node)
{
Expand Down Expand Up @@ -292,6 +293,7 @@ redblack_insert(redblack_node_t * tree, ID key, rb_shape_t * value)
return root;
}
}
#endif

rb_shape_tree_t *rb_shape_tree_ptr = NULL;

Expand Down

0 comments on commit d224bfd

Please sign in to comment.