Increase transaction isolation level for track scheduling and moving
This commit is contained in:
parent
da6e613a24
commit
f8a6721703
1 changed files with 7 additions and 0 deletions
|
@ -955,6 +955,10 @@ class Application_Model_Scheduler
|
|||
$this->con->beginTransaction();
|
||||
|
||||
try {
|
||||
//Increase the transaction isolation level to prevent two concurrent requests from potentially resulting
|
||||
//in tracks scheduled at the same time.
|
||||
$this->con->exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
|
||||
|
||||
$this->validateMediaItems($mediaItems); //Check for missing files, etc.
|
||||
$this->validateRequest($scheduleItems, true);
|
||||
|
||||
|
@ -1005,6 +1009,9 @@ class Application_Model_Scheduler
|
|||
//$this->con->useDebug(true);
|
||||
|
||||
try {
|
||||
//Increase the transaction isolation level to prevent two concurrent requests from potentially resulting
|
||||
//in tracks scheduled at the same time.
|
||||
$this->con->exec("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE");
|
||||
|
||||
$this->validateItemMove($selectedItems, $afterItems[0]);
|
||||
$this->validateRequest($selectedItems);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue