]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
leasedb: use a semantic primary key (storage_index, shnum, account_id), rather than...
authorDaira Hopwood <daira@jacaranda.org>
Sat, 15 Dec 2012 06:24:41 +0000 (06:24 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 17 Apr 2015 21:31:01 +0000 (22:31 +0100)
commit854b5625069ee4e588d1ab69e3890eaafc5d2dc0
tree7b608a63a635c735bd1e735dcfe26c8107ffa19d
parentcae933a8826165a3d587a573bd17d86827115423
leasedb: use a semantic primary key (storage_index, shnum, account_id), rather than an integer, for the leases table.
Take advantage of this to simplify add_or_renew_leases.
Fix a bug in add_starter_lease (which is not used yet) when a starter lease already exists.
Clean up leftover accesses to self._dirty.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
src/allmydata/storage/leasedb.py