From: david-sarah Date: Tue, 24 Jul 2012 03:40:49 +0000 (+0000) Subject: Cosmetic changes to match cloud backend branch. X-Git-Tag: allmydata-tahoe-1.10a1~59 X-Git-Url: https://git.rkrishnan.org/simplejson/components/(%5B%5E?a=commitdiff_plain;h=ca620a6ce195ff177f5ef64dc91558968db2360b;p=tahoe-lafs%2Ftahoe-lafs.git Cosmetic changes to match cloud backend branch. --- diff --git a/src/allmydata/immutable/offloaded.py b/src/allmydata/immutable/offloaded.py index 5365bad4..fbd756be 100644 --- a/src/allmydata/immutable/offloaded.py +++ b/src/allmydata/immutable/offloaded.py @@ -317,6 +317,9 @@ class CHKCiphertextFetcher(AskUntilSuccessMixin): if os.path.exists(self._encoding_file): self.log("ciphertext already present, bypassing fetch", level=log.UNUSUAL) + # XXX the following comment is probably stale, since + # LocalCiphertextReader.get_plaintext_hashtree_leaves does not exist. + # # we'll still need the plaintext hashes (when # LocalCiphertextReader.get_plaintext_hashtree_leaves() is # called), and currently the easiest way to get them is to ask diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index 7d0e61db..b556d4e3 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -2157,7 +2157,7 @@ class ICheckResults(Interface): files always return True.""" def needs_rebalancing(): - """Return a boolean, True if the file/dirs reliability could be + """Return a boolean, True if the file/dir's reliability could be improved by moving shares to new servers. Non-distributed LIT files always return False.""" @@ -2624,8 +2624,8 @@ class NotCapableError(Exception): class BadWriteEnablerError(Exception): pass -class RIControlClient(RemoteInterface): +class RIControlClient(RemoteInterface): def wait_for_client_connections(num_clients=int): """Do not return until we have connections to at least NUM_CLIENTS storage servers.