Server: transaction serializable for videos

pull/30/head
Chocobozzz 2017-01-11 18:41:40 +01:00
parent f2cdb86675
commit edc5e86006
3 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {
waterfall([
function startTransaction (callback) {
db.sequelize.transaction().asCallback(function (err, t) {
db.sequelize.transaction({ isolationLevel: 'SERIALIZABLE' }).asCallback(function (err, t) {
return callback(err, t)
})
},

View File

@ -264,7 +264,7 @@ function updateVideo (req, res, finalCallback) {
waterfall([
function startTransaction (callback) {
db.sequelize.transaction().asCallback(function (err, t) {
db.sequelize.transaction({ isolationLevel: 'SERIALIZABLE' }).asCallback(function (err, t) {
return callback(err, t)
})
},

View File

@ -174,7 +174,7 @@ function makeRequests () {
})
})
logger.info('Making requests to friends.', { requests: requestsToMakeGrouped })
logger.info('Making requests to friends.')
const goodPods = []
const badPods = []