diff options
Diffstat (limited to 'includes/SiteStats.php')
-rw-r--r-- | includes/SiteStats.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/SiteStats.php b/includes/SiteStats.php index ab0caa7e..9427536f 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -222,7 +222,7 @@ class SiteStatsUpdate { if ( $updates ) { $site_stats = $dbw->tableName( 'site_stats' ); - $sql = $dbw->limitResultForUpdate("UPDATE $site_stats SET $updates", 1); + $sql = "UPDATE $site_stats SET $updates"; # Need a separate transaction because this a global lock $dbw->begin(); @@ -240,7 +240,7 @@ class SiteStatsUpdate { __METHOD__ ); $dbw->update( 'site_stats', array( 'ss_active_users' => intval($activeUsers) ), - array( 'ss_row_id' => 1 ), __METHOD__, array( 'LIMIT' => 1 ) + array( 'ss_row_id' => 1 ), __METHOD__ ); } } |