pass
self.closed = True
- self.ss.bucket_writer_closed(self)
+ self.ss.bucket_writer_closed(self, fileutil.du(self.finalhome))
def str2l(s):
""" split string (pulled from storage) into a list of blockids """
return alreadygot, bucketwriters
- def bucket_writer_closed(self, bw):
- self.consumed += bw.allocated_size()
+ def bucket_writer_closed(self, bw, consumed_size):
+ self.consumed += consumed_size
del self._active_writers[bw]
def remote_get_buckets(self, storage_index):
fileutil.make_dirs(basedir)
return incoming, final
- def bucket_writer_closed(self, bw):
+ def bucket_writer_closed(self, bw, consumed):
pass
def test_create(self):