Commit 6c8fa580 authored by ale's avatar ale

Fix Flexihash constructor

parent efec71da
Pipeline #3691 failed with stages
in 4 seconds
......@@ -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
......
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