Здравствуйте!Есть проблема: c policyd и MySQL
создана база для policyd (policyd) в ней таблица (согласно документации):
CREATE TABLE triplet (
_from char(60) NOT NULL default '',
_rcpt char(60) NOT NULL default '',
_host char(46) NOT NULL default '',
_hostdomain char(60) NOT NULL default '',
_datenew int(10) unsigned NOT NULL default '0',
_datelast int(10) unsigned NOT NULL default '0',
_count smallint(5) unsigned NOT NULL default '0',
UNIQUE KEY _host (_host,_hostdomain,_from,_rcpt),
KEY _datelast (_datelast),
KEY _datenew (_datenew)
) TYPE=MyISAM;Для некоторых хостов началось вот такое:
Feb 20 11:11:29 test1 policyd[]: DEBUG[]: MySQL: SELECT _count,_datenew,_datelast FROM triplet WHERE _hostdomain='gldn.net' AND _from='yvesrocher-ctg0aecfgaaf7iyrdlds35ht4t54abra@newsletter.yves-rocher.ru' AND _rcpt='user1@domain.com'
Feb 20 11:11:29 test1 policyd[]: DEBUG[]: MySQL: no rows foundFeb 20 11:11:29 test1 policyd[]: DEBUG[]: MySQL: INSERT INTO triplet (_datenew,_datelast,_host,_hostdomain,_from,_rcpt) VALUES (1329566574,1329566574,'194.186.47','gldn.net','yvesrocher-ctg0aecfgaaf7iyrdlds35ht4t54abra@newsletter.yves-rocher.ru','user1@domain.com')
Feb 20 11:11:29 test1 policyd[]: MySQL: error executing query: Duplicate entry '194.186.47-gldn.net-yvesrocher-ctg0aecfgaaf7iyrdlds35ht4t54abra@' for key 1В итоге письма не проходят из за ошибки в policyd + MySQL.
Как правильно побороть?
глюк mysql'a? тады обновить мусклул, можно для недёжности попробовать вручную запустить похожие селекты/апдейты