From 1334a251cae94213c6ed1f3cf141afcdfe5e7664 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 11 Apr 2008 22:51:54 -0700 Subject: [PATCH] remove size constraint on ShareData: large directories caused errors which triggered massive memory usage. See #379 for details --- src/allmydata/interfaces.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/allmydata/interfaces.py b/src/allmydata/interfaces.py index 2c797e9b..fff146db 100644 --- a/src/allmydata/interfaces.py +++ b/src/allmydata/interfaces.py @@ -16,8 +16,7 @@ URI = StringConstraint(300) # kind of arbitrary MAX_BUCKETS = 200 # per peer -# MAX_SEGMENT_SIZE in encode.py is 1 MiB (this constraint allows k = 1) -ShareData = StringConstraint(2**20) +ShareData = StringConstraint(None) URIExtensionData = StringConstraint(1000) Number = IntegerConstraint(8) # 2**(8*8) == 16EiB ~= 18e18 ~= 18 exabytes Offset = Number -- 2.45.2