From: Rob Kinninmont Date: Fri, 1 Dec 2006 03:36:57 +0000 (-0700) Subject: fix bug in bucketstore read/write _attr X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~511 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=0aed9d15286f6482c677f816385809a4a5d65309;p=tahoe-lafs%2Ftahoe-lafs.git fix bug in bucketstore read/write _attr --- diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index fcbc19a8..bdbce44e 100644 --- a/allmydata/bucketstore.py +++ b/allmydata/bucketstore.py @@ -83,12 +83,12 @@ class Bucket: self._write_attr('bucket_num', str(bucket_num)) def _write_attr(self, name, val): - f = file(os.path.join(self._bucket_dir, 'name'), 'wb') + f = file(os.path.join(self._bucket_dir, name), 'wb') f.write(val) f.close() def _read_attr(self, name): - f = file(os.path.join(self._bucket_dir, 'name'), 'wb') + f = file(os.path.join(self._bucket_dir, name), 'wb') data = f.read() f.close() return data