diff --git a/db-hash.php b/db-hash.php index 6f69aaf002eadcf096242e89d463c025fb0420d4..8938929ed9c228e46c637a0d6b43a606a10c6bfd 100644 --- a/db-hash.php +++ b/db-hash.php @@ -1,8 +1,9 @@ <?php require_once(dirname(__FILE__) . '/flexihash.php'); +require_once( ABSPATH . 'wp-config.php' ); -$wpdb->hash_map = new Flexihash(); +$wpdb->hash_map = new Flexihash(null, R2DB_FLEXIHASH_REPLICAS); /* Hashing function to map blogs to databases. * @@ -16,4 +17,3 @@ function noblogs_db_callback($query, $wpdb) { } } $wpdb->add_callback('noblogs_db_callback'); -