mirror of https://github.com/apache/activemq.git
AMQ-5005. Fix for scala plugin
This commit is contained in:
parent
69e6ad8cf3
commit
d36e3c0e95
|
@ -836,7 +836,7 @@ class LevelDBClient(store: LevelDBStore) {
|
|||
|
||||
private def logRefIncrement(pos: Long) {
|
||||
for( key <- logRefKey(pos) ) {
|
||||
logRefs.getOrElseUpdate(key, new LongCounter()).incrementAndGet()
|
||||
logRefs.getOrElseUpdate(key, new LongCounter(0)).incrementAndGet()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,8 @@ class ClusteredSingletonWatcher[T <: NodeState](val stateClass:Class[T]) extends
|
|||
|
||||
def masters = this.synchronized {
|
||||
_members.mapValues(_.head._2).toArray.map(_._2).toArray(new ClassManifest[T] {
|
||||
def erasure = stateClass
|
||||
def runtimeClass = stateClass
|
||||
override def erasure = stateClass
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue