Add tub_handlers arg to NativeStorageServer constructor

Here we also define tub_handlers as a node attribute and pass it all the way
down to the NativeStorageServer via the Client and StorageFarmBroker
This commit is contained in:
David Stainton
2016-08-15 16:08:23 +00:00
committed by Brian Warner
parent 85cf1d65be
commit 61eb839843
3 changed files with 9 additions and 5 deletions

View File

@ -370,7 +370,8 @@ class Client(node.Node, pollmixin.PollMixin):
preferred_peers = tuple([p.strip() for p in ps if p != ""])
sb = storage_client.StorageFarmBroker(permute_peers=True,
preferred_peers=preferred_peers,
tub_options=self.tub_options)
tub_options=self.tub_options,
tub_handlers=self.tub_handlers)
self.storage_broker = sb
sb.setServiceParent(self)