Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2295,14 +2295,11 @@ |
2296 | 2296 | * to collide. However if you do this, you run the risk of encountering |
2297 | 2297 | * errors which wouldn't have occurred in MySQL. |
2298 | 2298 | * |
2299 | | - * @param $rows Can be either a single row to insert, or multiple rows, |
| 2299 | + * @param $table String: The table to replace the row(s) in. |
| 2300 | + * @param $rows array Can be either a single row to insert, or multiple rows, |
2300 | 2301 | * in the same format as for DatabaseBase::insert() |
2301 | | - * @param $uniqueIndexes is an array of indexes. Each element may be either |
| 2302 | + * @param $uniqueIndexes array is an array of indexes. Each element may be either |
2302 | 2303 | * a field name or an array of field names |
2303 | | - * |
2304 | | - * @param $table String: The table to replace the row(s) in. |
2305 | | - * @param $uniqueIndexes Array: An associative array of indexes |
2306 | | - * @param $rows Array: Array of rows to replace |
2307 | 2304 | * @param $fname String: Calling function name (use __METHOD__) for logs/profiling |
2308 | 2305 | */ |
2309 | 2306 | function replace( $table, $uniqueIndexes, $rows, $fname = 'DatabaseBase::replace' ) { |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | return false; |
119 | 119 | } |
120 | 120 | $max = mt_getrandmax(); |
121 | | - $rand = mt_rand(0, $max) / $max * $sum; |
| 121 | + $rand = mt_rand( 0, $max ) / $max * $sum; |
122 | 122 | |
123 | 123 | $sum = 0; |
124 | 124 | foreach ( $weights as $i => $w ) { |