]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/remote/videos.js
Server: transaction serializable for videos
[github/Chocobozzz/PeerTube.git] / server / controllers / api / remote / videos.js
index b9494f6028a919ee8e6cc2c4567a3e74e6469959..c45a86dbbff33d8f7e56cd51c77e6d6d64c8e0ee 100644 (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)
       })
     },