]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
MDMF: more writable/writeable consistentifications
authorBrian Warner <warner@lothar.com>
Sat, 27 Aug 2011 19:06:02 +0000 (12:06 -0700)
committerBrian Warner <warner@lothar.com>
Sat, 27 Aug 2011 19:06:02 +0000 (12:06 -0700)
src/allmydata/immutable/upload.py
src/allmydata/mutable/filenode.py
src/allmydata/test/test_uri.py

index d152c44d6af0f5159154bba83d8050b861cacb3f..1a573184d872c7354f0f025eb93dd447af7a6db5 100644 (file)
@@ -220,9 +220,9 @@ class Tahoe2ServerSelector(log.PrefixingLogMixin):
             v0 = server.get_rref().version
             v1 = v0["http://allmydata.org/tahoe/protocols/storage/v1"]
             return v1["maximum-immutable-share-size"]
-        writable_servers = [server for server in all_servers
+        writeable_servers = [server for server in all_servers
                             if _get_maxsize(server) >= allocated_size]
-        readonly_servers = set(all_servers[:2*total_shares]) - set(writable_servers)
+        readonly_servers = set(all_servers[:2*total_shares]) - set(writeable_servers)
 
         # decide upon the renewal/cancel secrets, to include them in the
         # allocate_buckets query.
@@ -257,7 +257,7 @@ class Tahoe2ServerSelector(log.PrefixingLogMixin):
         # second-pass list and repeat the "second" pass (really the third,
         # fourth, etc pass), until all shares are assigned, or we've run out
         # of potential servers.
-        self.first_pass_trackers = _make_trackers(writable_servers)
+        self.first_pass_trackers = _make_trackers(writeable_servers)
         self.second_pass_trackers = [] # servers worth asking again
         self.next_pass_trackers = [] # servers that we have asked again
         self._started_second_pass = False
index 9f70e2106d05c2b69ec0489c29ba5f6c23cf5a60..59438b872339a8f6c3a784a4f2a72ce12b703212 100644 (file)
@@ -478,7 +478,7 @@ class MutableFileNode:
         I return a Deferred that fires with a MutableFileVersion
         representing the best readable version of the file that I
         represent. I am like get_best_readable_version, except that I
-        will try to make a writable version if I can.
+        will try to make a writeable version if I can.
         """
         return self.get_mutable_version(servermap=servermap)
 
index e1bb7d7167a3d876d9f6330d6d91273289881e4a..7662c7f8a05175832703dcf5ffc334db5de007ea 100644 (file)
@@ -347,7 +347,7 @@ class Mutable(testutil.ReallyEqualMixin, unittest.TestCase):
         self.failUnlessReallyEqual(u5, u5_h)
 
 
-    def test_writable_mdmf_cap(self):
+    def test_writeable_mdmf_cap(self):
         u1 = uri.WriteableMDMFFileURI(self.writekey, self.fingerprint)
         cap = u1.to_string()
         u = uri.WriteableMDMFFileURI.init_from_string(cap)
@@ -359,7 +359,7 @@ class Mutable(testutil.ReallyEqualMixin, unittest.TestCase):
         self.failIf(u.is_readonly())
         self.failUnlessEqual(cap, u.to_string())
 
-        # Now get a readonly cap from the writable cap, and test that it
+        # Now get a readonly cap from the writeable cap, and test that it
         # degrades gracefully.
         ru = u.get_readonly()
         self.failUnlessReallyEqual(self.readkey, ru.readkey)
@@ -387,8 +387,8 @@ class Mutable(testutil.ReallyEqualMixin, unittest.TestCase):
         self.failUnlessEqual(vu.storage_index, self.storage_index)
         self.failUnlessEqual(vu.fingerprint, self.fingerprint)
 
-    def test_create_writable_mdmf_cap_from_readcap(self):
-        # we shouldn't be able to create a writable MDMF cap given only a
+    def test_create_writeable_mdmf_cap_from_readcap(self):
+        # we shouldn't be able to create a writeable MDMF cap given only a
         # readcap.
         u1 = uri.ReadonlyMDMFFileURI(self.readkey, self.fingerprint)
         cap = u1.to_string()
@@ -396,7 +396,7 @@ class Mutable(testutil.ReallyEqualMixin, unittest.TestCase):
                               uri.WriteableMDMFFileURI.init_from_string,
                               cap)
 
-    def test_create_writable_mdmf_cap_from_verifycap(self):
+    def test_create_writeable_mdmf_cap_from_verifycap(self):
         u1 = uri.MDMFVerifierURI(self.storage_index, self.fingerprint)
         cap = u1.to_string()
         self.failUnlessRaises(uri.BadURIError,