From 6c8fa580823d295eee6c009ef7544330d3fdca2a Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Tue, 2 Jul 2019 19:50:32 +0100 Subject: [PATCH] Fix Flexihash constructor --- lib/blogs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blogs.php b/lib/blogs.php index 73ce124..3a8177b 100644 --- a/lib/blogs.php +++ b/lib/blogs.php @@ -32,7 +32,7 @@ function noblogs_get_backend_for_blog($blog_id) { // Create a temporary hash object just to load the backends // (we cannot use the map in $wpdb because it doesn't have the // backend array anymore). - $hashmap = new Flexihash(); + $hashmap = new Flexihash(null, R2DB_FLEXIHASH_REPLICAS); $reversemap = noblogs_load_backends(NOBLOGS_BACKEND_CONFIG, $hashmap); // Lookup the blog ID using the $wpdb hash just to be safe (though -- GitLab