[tahoe-dev] [tahoe-lafs] #633: lease-expiring share crawler

tahoe-lafs trac at allmydata.org
Wed Feb 18 21:49:43 UTC 2009


#633: lease-expiring share crawler
--------------------------+-------------------------------------------------
 Reporter:  warner        |           Owner:  warner
     Type:  task          |          Status:  new   
 Priority:  major         |       Milestone:  1.4.0 
Component:  code-storage  |         Version:  1.3.0 
 Keywords:                |   Launchpad_bug:        
--------------------------+-------------------------------------------------

Comment(by zooko):

 Yeah, if the common operations are just appending an SI to a set, and
 consuming an entire set, then you could easily implement this with each
 set being a file instead of a directory of 0-length files.  Open the file
 and append the (binary, fixed-length) SI to it to add the element the set.
 Read through the whole file, processing each SI, and then rm it to consume
 the set.

 It isn't so easy to *remove* an element from a set, but we don't really
 need to do that for this application, and if we do need to do it it isn't
 that hard -- you just have to scan the whole file to find the SI you want
 to remove.

-- 
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/633#comment:3>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid


More information about the tahoe-dev mailing list