commit | f748bfbf7e578919665b76dd23aac293e56e9229 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Wed Sep 25 13:54:40 2013 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Wed Sep 25 13:54:40 2013 +0000 |
tree | 6f609e21c6f82ae512a83649348589fcad005e4d | |
parent | 0d6e3c6972470dfb2553fce694351dc43f4c9bfa [diff] |
FELIX-4238 The pmtCount field must keep the tracking count not the number of tracked services. Otherwise the list of services is updated on each access to configuration. git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1526179 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java index 021a57a..0bb8b7f 100644 --- a/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java +++ b/configadmin/src/main/java/org/apache/felix/cm/impl/ConfigurationManager.java
@@ -848,7 +848,7 @@ pm = ( PersistenceManager[] ) pmList.toArray( new PersistenceManager[pmList.size()] ); } - pmtCount = pm.length; + pmtCount = currentPmtCount; persistenceManagers = pm; }