mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
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:
parent
b43672c9f5
commit
97ffc8a418
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user