You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/03/20 10:26:20 UTC

karaf-cellar git commit: [KARAF-3609] Cloud blob store discovery service factory registers the new blob store service created

Repository: karaf-cellar
Updated Branches:
  refs/heads/master 49ea0395a -> 1bb42fe97


[KARAF-3609] Cloud blob store discovery service factory registers the new blob store service created


Project: http://git-wip-us.apache.org/repos/asf/karaf-cellar/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-cellar/commit/1bb42fe9
Tree: http://git-wip-us.apache.org/repos/asf/karaf-cellar/tree/1bb42fe9
Diff: http://git-wip-us.apache.org/repos/asf/karaf-cellar/diff/1bb42fe9

Branch: refs/heads/master
Commit: 1bb42fe9770fc3a8138836e14aaa87a0a67d4873
Parents: 49ea039
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Fri Mar 20 10:25:15 2015 +0100
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Fri Mar 20 10:25:15 2015 +0100

----------------------------------------------------------------------
 .../apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf-cellar/blob/1bb42fe9/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java
----------------------------------------------------------------------
diff --git a/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java b/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java
index 3dc994f..7341822 100644
--- a/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java
+++ b/cloud/src/main/java/org/apache/karaf/cellar/cloud/BlobStoreDiscoveryServiceFactory.java
@@ -82,6 +82,7 @@ public class BlobStoreDiscoveryServiceFactory implements ManagedServiceFactory {
                 service.init();
 
                 newRegistration = bundleContext.registerService(DiscoveryService.class.getName(), service, (Dictionary) serviceProperties);
+                registrations.put(pid, newRegistration);
             }
         } finally {
             ServiceRegistration oldRegistration = (newRegistration == null) ? registrations.remove(pid) : registrations.put(pid, newRegistration);