]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
leasedb: use a semantic primary key (storage_index, shnum, account_id), rather than...
authorDavid-Sarah Hopwood <david-sarah@jacaranda.org>
Sat, 15 Dec 2012 06:24:41 +0000 (06:24 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 10 Jul 2015 03:10:58 +0000 (04:10 +0100)
commitb73ca6c3d94765832ebee7090425d1c1129f0db4
treeb306ffefdd11ba6cf17f4b17cad8d52dc7f6b3ee
parent2e9a664232ce376e66edd36218cc74edf23a493c
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