参考博文:http://ilgnep.iteye.com/blog/706109
在项目中应用spider storage engine时,发现上传文件时出现如下的数据库错误:
[Mysql::Error: This xid is already exist: COMMIT]
解决办法:
在spider main的配置文件my.sandbox.cnf中加入如下的配置,重启spider main即可:
[mysqld]
...略...
spider_support_xa=0
spider_internal_xa=1
...略...
spider storage engine相关参数的说明请参照其说明文档(spider-doc-2.20-for-5.1.44.tgz.tar):
https://launchpad.net/spiderformysql/+download