From f1f7e53b562ffebe32d44f93727aa921c75bf82e Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Fri, 12 May 2017 14:44:06 +0200 Subject: [PATCH] [EDF14691] : perf in addkey. --- src/SALOMESDS/SALOMESDS_Transaction.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } -- 2.39.2