Duplicate indexes created on searchwriterlock
GENERAL
TESTING
GENERAL
TESTING
Description
relates to
Activity
Show:
Neal Caidin February 19, 2014 at 8:48 PM
Should the fix version be 1.4.0 ?

Hudson CI Server January 21, 2012 at 12:40 AM
Integrated in search trunk #332 (See http://builds.sakaiproject.org:8080/job/search%20trunk/332/)
remove dupliacte index
The search SQL and/or Hibernate HBM is creating two indexes on lockkey, only one of which is UNIQUE. There should be only one unique index created.
CREATE TABLE `searchwriterlock` (
`id` varchar(64) NOT NULL,
`lockkey` varchar(64) NOT NULL,
`nodename` varchar(64) DEFAULT NULL,
`expires` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `lockkey` (`lockkey`),
KEY `isearchwriterlock_lk` (`lockkey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8