N°3513 - Write object creation history within the same DB transaction for better consistency

This commit is contained in:
Eric
2021-06-28 16:59:05 +02:00
parent 0e55a30e5a
commit 0396914068
2 changed files with 26 additions and 26 deletions

View File

@@ -2810,6 +2810,9 @@ abstract class DBObject implements iDisplay
$this->DBWriteLinks();
$this->WriteExternalAttributes();
// Write object creation history within the transaction
$this->RecordObjCreation();
if ($bIsTransactionEnabled) {
CMDBSource::Query('COMMIT');
}
@@ -2870,8 +2873,6 @@ abstract class DBObject implements iDisplay
}
}
$this->RecordObjCreation();
return $this->m_iKey;
}