mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
storage #596: announce 'tolerates-immutable-read-overrun' to the version announcement, to indicate that a read() on an immutable share where offset+length is beyond the end of the file will return a truncated string instead of raising an exception
This commit is contained in:
parent
89683a3906
commit
0b29aae7cf
@ -32,7 +32,9 @@ class RemoteServiceConnector:
|
||||
|
||||
VERSION_DEFAULTS = {
|
||||
"storage": { "http://allmydata.org/tahoe/protocols/storage/v1" :
|
||||
{ "maximum-immutable-share-size": 2**32 },
|
||||
{ "maximum-immutable-share-size": 2**32,
|
||||
"tolerates-immutable-read-overrun": False,
|
||||
},
|
||||
"application-version": "unknown: no get_version()",
|
||||
},
|
||||
"stub_client": { },
|
||||
|
@ -961,7 +961,9 @@ class StorageServer(service.MultiService, Referenceable):
|
||||
# guess.
|
||||
remaining_space = 2**64
|
||||
version = { "http://allmydata.org/tahoe/protocols/storage/v1" :
|
||||
{ "maximum-immutable-share-size": remaining_space },
|
||||
{ "maximum-immutable-share-size": remaining_space,
|
||||
"tolerates-immutable-read-overrun": True,
|
||||
},
|
||||
"application-version": str(allmydata.__version__),
|
||||
}
|
||||
return version
|
||||
|
Loading…
Reference in New Issue
Block a user