]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[EDF14691] : perf in addkey.
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 12 May 2017 12:44:06 +0000 (14:44 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 1 Jun 2017 08:40:20 +0000 (10:40 +0200)
src/SALOMESDS/SALOMESDS_Transaction.cxx

index 6d85116f9fee64520fb26b862f522f7738202668..26fd9affe464d43cb3b4f57c349c4df61cc192cf 100644 (file)
@@ -276,11 +276,12 @@ void TransactionMultiKeyAddSession::addKeyValueInVarErrorIfAlreadyExistingNow(co
   _dsct->checkVarExistingAndDict(_var_name);
   TransactionAddKeyValueErrorIfAlreadyExisting ret(_dsct,_var_name,key,value);
   {
-    bool mustRollback(true);
+    ret.perform();
+    /*bool mustRollback(true);
     TrustTransaction t;
     t.setTransaction(&ret,&mustRollback);
     t.operate();
-    mustRollback=false;//important let this line to notify t that everything was OK
+    mustRollback=false;//important let this line to notify t that everything was OK*/
   }
   ret.notify();
 }