From: Anthony Geay Date: Fri, 12 May 2017 12:44:06 +0000 (+0200) Subject: [EDF14691] : perf in addkey. X-Git-Tag: EMC2_V_1_0_2~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f1f7e53b562ffebe32d44f93727aa921c75bf82e;p=modules%2Fkernel.git [EDF14691] : perf in addkey. --- diff --git a/src/SALOMESDS/SALOMESDS_Transaction.cxx b/src/SALOMESDS/SALOMESDS_Transaction.cxx index 6d85116f9..26fd9affe 100644 --- a/src/SALOMESDS/SALOMESDS_Transaction.cxx +++ b/src/SALOMESDS/SALOMESDS_Transaction.cxx @@ -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(); }