cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r535916 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java
Date Mon, 07 May 2007 16:13:28 GMT
Author: torehalset
Date: Mon May  7 09:13:27 2007
New Revision: 535916

URL: http://svn.apache.org/viewvc?view=rev&rev=535916
Log:
CAY-722: reduced shard cache lock scope

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java?view=diff&rev=535916&r1=535915&r2=535916
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/main/java/org/apache/cayenne/access/DataDomainFlushAction.java
Mon May  7 09:13:27 2007
@@ -128,24 +128,23 @@
         this.flattenedBucket = new DataDomainFlattenedBucket(this);
 
         this.queries = new ArrayList();
+        this.resultIndirectlyModifiedIds = new HashSet();
 
-        // note that there is no syncing on the object store itself. This is caller's
-        // responsibility.
-        synchronized (context.getObjectStore().getDataRowCache()) {
-
-            this.resultIndirectlyModifiedIds = new HashSet();
+        preprocess(context, changes);
 
-            preprocess(context, changes);
+        if (queries.isEmpty()) {
+            return new CompoundDiff();
+        }
 
-            if (queries.isEmpty()) {
-                return new CompoundDiff();
-            }
+        this.resultDiff = new CompoundDiff();
+        this.resultDeletedIds = new ArrayList();
+        this.resultModifiedSnapshots = new HashMap();
 
-            this.resultDiff = new CompoundDiff();
-            this.resultDeletedIds = new ArrayList();
-            this.resultModifiedSnapshots = new HashMap();
+        runQueries();
 
-            runQueries();
+        // note that there is no syncing on the object store itself. This is caller's
+        // responsibility.
+        synchronized (context.getObjectStore().getDataRowCache()) {
             postprocess(context);
             return resultDiff;
         }



Mime
View raw message