Fix huge_palloc() regression.
Split arena_choose() into arena_[i]choose() and use arena_ichoose() for
arena lookup during internal allocation. This fixes huge_palloc() so
that it always succeeds during extent node allocation.
This regression was introduced by
66cd953514a18477eb49732e40d5c2ab5f1b12c5 (Do not allocate metadata via
non-auto arenas, nor tcaches.).
diff --git a/src/ctl.c b/src/ctl.c
index 2e81143..e0392d0 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1306,7 +1306,7 @@
arena_t *oldarena;
unsigned newind, oldind;
- oldarena = arena_choose(tsd, NULL, false);
+ oldarena = arena_choose(tsd, NULL);
if (oldarena == NULL)
return (EAGAIN);