]> 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, 16 Oct 2015 16:18:26 +0000 (17:18 +0100)
commitddcba6d11e4171221c2bd9192eda730431f8a147
tree5bcb98daad97950bc2aed6b404a796c5f9615424
parent3b1402994e87e94c99877b75ace0e7ebdaeb986a
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