mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-18 18:56:28 +00:00
Correct off-by-one in maximum-immutable-share-size for old servers. fixes #1781
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
This commit is contained in:
parent
9be1a94043
commit
68b7f9e979
@ -178,7 +178,7 @@ class NativeStorageServer:
|
||||
|
||||
VERSION_DEFAULTS = {
|
||||
"http://allmydata.org/tahoe/protocols/storage/v1" :
|
||||
{ "maximum-immutable-share-size": 2**32,
|
||||
{ "maximum-immutable-share-size": 2**32 - 1,
|
||||
"maximum-mutable-share-size": 2*1000*1000*1000, # maximum prior to v1.9.2
|
||||
"tolerates-immutable-read-overrun": False,
|
||||
"delete-mutable-shares-with-zero-length-writev": False,
|
||||
|
@ -106,7 +106,7 @@ class FakeStorageServer:
|
||||
self.allocated = []
|
||||
self.queries = 0
|
||||
self.version = { "http://allmydata.org/tahoe/protocols/storage/v1" :
|
||||
{ "maximum-immutable-share-size": 2**32 },
|
||||
{ "maximum-immutable-share-size": 2**32 - 1 },
|
||||
"application-version": str(allmydata.__full_version__),
|
||||
}
|
||||
if mode == "small":
|
||||
|
Loading…
Reference in New Issue
Block a user