Ticket #1510: update-parms.diff

File update-parms.diff, 780 bytes (added by warner, at 2011-08-27T21:15:03Z)

here's the fix: update k/N after retrieval, so we use the same values on subsequent publish

  • src/allmydata/mutable/retrieve.py

    diff --git a/src/allmydata/mutable/retrieve.py b/src/allmydata/mutable/retrieve.py
    index 595da73..b1ec761 100644
    a b class Retrieve: 
    10801080        self._status.timings['total'] = now - self._started
    10811081        self._status.timings['fetch'] = now - self._started_fetching
    10821082
     1083        # remember the encoding parameters, use them again next time
     1084        (seqnum, root_hash, IV, segsize, datalength, k, N, prefix,
     1085         offsets_tuple) = self.verinfo
     1086        self._node._populate_required_shares(k)
     1087        self._node._populate_total_shares(N)
     1088
    10831089        if self._verify:
    10841090            ret = list(self._bad_shares)
    10851091            self.log("done verifying, found %d bad shares" % len(ret))