Commit a1c12885 authored by Aurel's avatar Aurel

set num_replicas and num_partitions variable


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@88 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ab825ef5
......@@ -129,6 +129,8 @@ class Application(ThreadingMixIn, object):
self.mq_cache = MQ()
self.new_oid_list = []
self.ptid = None
self.num_replicas = 0
self.num_partitions = 0
# Transaction specific variable
self.tid = None
self.txn = None
......
......@@ -143,7 +143,8 @@ class ClientEventHandler(EventHandler):
# Create partition table if necessary
if app.pt is None:
app.pt = PartitionTable(num_partitions, num_replicas)
app.num_partitions = num_partitions
app.num_replicas = num_replicas
# Ask a primary master.
msg_id = conn.getNextId()
p = Packet()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment