]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Alter the signature of set_shareholders in IEncoder to add a 'servermap' parameter... trac-4300
authorKevan Carstensen <kevan@isnotajoke.com>
Wed, 4 Nov 2009 04:32:41 +0000 (21:32 -0700)
committerKevan Carstensen <kevan@isnotajoke.com>
Wed, 4 Nov 2009 04:32:41 +0000 (21:32 -0700)
src/allmydata/interfaces.py

index 831fcb6d74e07f16fee00f7001392420af48c153..5b82f8165e5bb234c4f82f2b01e0283d1220aaaa 100644 (file)
@@ -1338,11 +1338,12 @@ class IEncoder(Interface):
         Once this is called, set_size() and set_params() may not be called.
         """
 
-    def set_shareholders(shareholders):
+    def set_shareholders(shareholders, servermap):
         """Tell the encoder where to put the encoded shares. 'shareholders'
         must be a dictionary that maps share number (an integer ranging from
-        0 to n-1) to an instance that provides IStorageBucketWriter. This
-        must be performed before start() can be called."""
+        0 to n-1) to an instance that provides IStorageBucketWriter.
+        'servermap' is a dictionary that maps share number (as defined above)
+        to a peerid. This must be performed before start() can be called."""
 
     def start():
         """Begin the encode/upload process. This involves reading encrypted