1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/galera/musl-page-size.patch
Jake Buchholz 13b8c9984e testing/galera: new aport
* galera = wsrep provider for mariadb
* galera-arbitrator = arbitrator daemon to provide quorum for clusters with even numbers of databases
2020-01-31 21:38:38 +01:00

16 lines
616 B
Diff

--- a/galerautils/src/gu_alloc.cpp
+++ b/galerautils/src/gu_alloc.cpp
@@ -29,10 +29,11 @@
if (gu_likely(size <= left_))
{
/* to avoid too frequent allocation, make it (at least) 64K */
- static page_size_type const PAGE_SIZE(gu_page_size_multiple(1 << 16));
+ /* was PAGE_SIZE but collided with a define */
+ static page_size_type const PG_SZ(gu_page_size_multiple(1 << 16));
page_size_type const page_size
- (std::min(std::max(size, PAGE_SIZE), left_));
+ (std::min(std::max(size, PG_SZ), left_));
Page* ret = new HeapPage (page_size);