From 97c1ff55e90516c7c7bc2bff7f53d0626e48c3da Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 28 Nov 2019 17:15:04 +0100 Subject: [PATCH] :memo: Comment to explain why Uniqueness isn't protected by a lock --- core/dbobject.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 3f97559b4..70ecea937 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -2003,6 +2003,8 @@ abstract class DBObject implements iDisplay continue; } + // No iTopMutex so there might be concurrent access ! + // But the necessary lock would have a high performance cost :( $bHasDuplicates = $this->HasObjectsInDbForUniquenessRule($sUniquenessRuleId, $aUniquenessRuleProperties); if ($bHasDuplicates) {