details:   https://code.openbravo.com/erp/devel/pi/rev/e3a5d2382b2d
changeset: 23083:e3a5d2382b2d
user:      Guillermo Gil <guillermo.gil <at> openbravo.com>
date:      Wed May 21 13:01:40 2014 +0200
summary:   Related to issue 26548: Slow flush after a fetch to a datasource

Modified cleared session on FIC

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r f596f4f93186 -r e3a5d2382b2d 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed May 21 12:44:21 2014 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Wed May 21 13:01:40 2014 +0200
@@ -228,9 +228,6 @@
         }
       }
 
-      // Clear session to prevent slow flush
-       OBDal.getInstance().getSession().clear();
-
       // First the parent record is retrieved and the session variables for 
the parent records are
       // set
       long t1 = System.currentTimeMillis();
@@ -308,6 +305,10 @@
         log.error("Error while generating the error JSON object: " + 
jsonString, e);
       }
     } finally {
+
+      // Clear session to prevent slow flush
+      OBDal.getInstance().getSession().clear();
+
       OBContext.restorePreviousMode();
     }
     return null;

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to