mutable/filenode.py: set _writekey to None, rather than leaving it missing

This will at least turn the really really weird error when a repair of a
readonly mutable file is attempted into a merely really weird assertion that
mentions "repair currently requires a writecap".
This commit is contained in:
Brian Warner 2009-06-25 23:20:22 -07:00
parent b43672c9f5
commit 97ffc8a418

View File

@ -85,6 +85,8 @@ class MutableFileNode:
self._uri = IMutableFileURI(myuri)
if not self._uri.is_readonly():
self._writekey = self._uri.writekey
else:
self._writekey = None
self._readkey = self._uri.readkey
self._storage_index = self._uri.storage_index
self._fingerprint = self._uri.fingerprint