mirror of https://github.com/apache/activemq.git
fixed some small code mistypes in replicated leveldb.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1480059 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7aaca5034
commit
ee97df7422
|
@ -126,7 +126,6 @@ class ElectingLevelDBStore extends ProxyLevelDBStore {
|
|||
|
||||
var zk_client: ZKClient = _
|
||||
var zk_group: Group = _
|
||||
var master_elector: MasterElector = _
|
||||
|
||||
var position: Long = -1L
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class MasterElector(store: ElectingLevelDBStore) extends ClusteredSingleton[Leve
|
|||
def join: Unit = this.synchronized {
|
||||
last_state = create_state
|
||||
join(last_state)
|
||||
add(changle_listener)
|
||||
add(change_listener)
|
||||
}
|
||||
|
||||
def elector = this
|
||||
|
@ -76,7 +76,7 @@ class MasterElector(store: ElectingLevelDBStore) extends ClusteredSingleton[Leve
|
|||
rc
|
||||
}
|
||||
|
||||
object changle_listener extends ChangeListener {
|
||||
object change_listener extends ChangeListener {
|
||||
|
||||
def connected = changed
|
||||
def disconnected = changed
|
||||
|
|
|
@ -214,7 +214,7 @@ public class ElectingLevelDBStoreTest extends TestCase {
|
|||
private ElectingLevelDBStore createStoreNode() {
|
||||
ElectingLevelDBStore store = new ElectingLevelDBStore();
|
||||
store.setSecurityToken("foo");
|
||||
store.setLogSize(1023 * 200);
|
||||
store.setLogSize(1024 * 200);
|
||||
store.setReplicas(2);
|
||||
store.setZkAddress("localhost:" + connector.getLocalPort());
|
||||
store.setZkPath("/broker-stores");
|
||||
|
|
Loading…
Reference in New Issue