Open SRCAM opened 2 years ago
1.mongdb 未填写dsn的情况下,无法指定某个数据库 2.部署方式为单一服务器模式一下,保存数据会出现 MongoDB\Driver\Exception\BulkWriteException : Transaction numbers are only allowed on a replica set member or mongos 建议在think\db\connector\Mongo 类的 transaction 方法判断是否为单一服务器模式 如果是单一模式 不生成相关事务
MongoDB\Driver\Exception\BulkWriteException : Transaction numbers are only allowed on a replica set member or mongos
@liu21st
1.mongdb 未填写dsn的情况下,无法指定某个数据库 2.部署方式为单一服务器模式一下,保存数据会出现
MongoDB\Driver\Exception\BulkWriteException : Transaction numbers are only allowed on a replica set member or mongos
建议在think\db\connector\Mongo 类的 transaction 方法判断是否为单一服务器模式 如果是单一模式 不生成相关事务