aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1733018 - /aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java
Date Tue, 01 Mar 2016 09:35:13 GMT
Author: gnodet
Date: Tue Mar  1 09:35:12 2016
New Revision: 1733018

URL: http://svn.apache.org/viewvc?rev=1733018&view=rev
Log:
[ARIES-1499] Refreshing a persistent bundle leaves it in the grace period blueprint state

Modified:
    aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java

Modified: aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java
URL: http://svn.apache.org/viewvc/aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java?rev=1733018&r1=1733017&r2=1733018&view=diff
==============================================================================
--- aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java
(original)
+++ aries/branches/jpa-1.x/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleManager.java
Tue Mar  1 09:35:12 2016
@@ -239,10 +239,8 @@ public class PersistenceBundleManager im
     if(event != null && (event.getType() == BundleEvent.UPDATED || event.getType()
== BundleEvent.UNRESOLVED)) {
       mgr.destroy();
       persistenceUnitFactory.destroyPersistenceBundle(ctx, bundle);
-      if (event.getType() == BundleEvent.UPDATED) {
-          //Don't add to the managersAwaitingProviders, the setupManager will do it
-          setupManager(bundle, mgr, true);
-      }
+      //Don't add to the managersAwaitingProviders, the setupManager will do it
+      setupManager(bundle, mgr, event.getType() == BundleEvent.UPDATED);
     } else {
       try {
         boolean reassign;



Mime
View raw message