]> 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, 8 Apr 2014 23:33:34 +0000 (00:33 +0100)
commitd99a093168fd1b589124339596eab992cee33210
tree91b7f03aa971ecfa3d2d40ed2e298c8942f2efe7
parent1f613191284ac175cb0871dca7aa0964478fcc74
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