Skip to content
Snippets Groups Projects
Commit 6c8fa580 authored by ale's avatar ale
Browse files

Fix Flexihash constructor

parent efec71da
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment