]> 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>
Tue, 4 Aug 2015 17:00:19 +0000 (18:00 +0100)
commitd104932e7cc6cac91f72da79df31b179ebfc943e
tree1a4421d90521474b84fb1537aea86f0a75fa88b1
parenta8fdd3d79ee65f3276a69554a3d76ebde0c5fd7c
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