WIP Storage broker client creates one tub per server

i was unable to get all the unit tests working;
this is my work in progress.
This commit is contained in:
David Stainton
2016-05-02 15:23:07 +00:00
parent 22c1031d19
commit 6061b6fc3c
9 changed files with 32 additions and 14 deletions

View File

@ -359,8 +359,10 @@ class Client(node.Node, pollmixin.PollMixin):
# (and everybody else who wants to use storage servers)
ps = self.get_config("client", "peers.preferred", "").split(",")
preferred_peers = tuple([p.strip() for p in ps if p != ""])
sb = storage_client.StorageFarmBroker(self.tub, permute_peers=True, preferred_peers=preferred_peers)
sb = storage_client.StorageFarmBroker(permute_peers=True, preferred_peers=preferred_peers)
self.storage_broker = sb
sb.setServiceParent(self)
connection_threshold = min(self.encoding_params["k"],
self.encoding_params["happy"] + 1)