]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix bug in bucketstore read/write _attr
authorRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:36:57 +0000 (20:36 -0700)
committerRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:36:57 +0000 (20:36 -0700)
allmydata/bucketstore.py

index fcbc19a8174ac716a6507295f7eb9d44633c247a..bdbce44e3e27213bc76bdebe8d969e7e36cbee9f 100644 (file)
@@ -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