From: Anthony Geay Date: Fri, 12 May 2017 12:44:06 +0000 (+0200) Subject: [EDF14691] : perf in addkey. X-Git-Tag: Before_multi_study_removal_06072017~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f62a35ff3b71d316d69790a34769dc2dc2826d93;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(); }