Empty commit

This commit is contained in:
Git 2011-11-02 08:00:14 +00:00
parent b04d5b36ca
commit 5083111449
2 changed files with 9 additions and 2 deletions

View File

@ -1447,10 +1447,13 @@ CREATE TABLE `xbt_files_users` (
`ipa` int(12) unsigned NOT NULL,
`mtime` int(11) NOT NULL,
`ip` varchar(15) NOT NULL DEFAULT '',
PRIMARY KEY (`uid`,`fid`,`peer_id`),
PRIMARY KEY (`peer_id`,`fid`),
KEY `remaining_idx` (`remaining`),
KEY `fid_idx` (`fid`),
KEY `mtime_idx` (`mtime`)
KEY `mtime_idx` (`mtime`),
KEY `uid` (`uid`),
KEY `downloaded` (`downloaded`),
KEY `active` (`active`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `xbt_scrape_log` (

View File

@ -110,6 +110,10 @@
ON DUPLICATE KEY UPDATE Time=VALUES(Time), Expired=FALSE");
$DB->query("UPDATE users_main SET FLTokens = FLTokens - 1 WHERE ID=$UserID");
// Fix for downloadthemall messing with the cached token count
$UInfo = user_heavy_info($UserID);
$FLTokens = $UInfo['FLTokens'];
$Cache->begin_transaction('user_info_heavy_'.$UserID);
$Cache->update_row(false, array('FLTokens'=>($FLTokens - 1)));
$Cache->commit_transaction(0);