Actions
Bug #20065
closedMYSQL Replication breaks because of lack of AUTO_INCREMENT PK in cache_pagesection
Start date:
2009-02-20
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi,
recently I discovered that in a high load environment with multiple replicating MYSQL hosts the replication tends to break beacuase of lack of an auto incrementing primary key in the table cache_pagesection.
Here is my solution:
ALTER TABLE cache_pagesection DROP PRIMARY KEY;
CREATE TABLE cache_pagesection (
uid int(11) NOT NULL auto_increment PRIMARY KEY,
KEY pageid_mphash (page_id,mpvar_hash),
PRIMARY KEY,
);
Tho only problem seems to be a limitaiton of the SQL compare script, which is unable to handle PK Changes.
best regards,
Lukas Taferner
(issue imported from #M10508)
Actions