]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
accounting_crawler.py: disable removing leasedb entries for disappeared shares.
authorDaira Hopwood <daira@jacaranda.org>
Thu, 21 Feb 2013 01:59:48 +0000 (01:59 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 17 Apr 2015 21:31:38 +0000 (22:31 +0100)
This works around ticket #1921 for now.

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

index 1adc9dbad864eddb65f066693f42929751620832..d54f61334cadd9a0c39f56b6f01b2c7c205bc6b3 100644 (file)
@@ -106,7 +106,9 @@ class AccountingCrawler(ShareCrawler):
             for (si_s, shnum) in disappeared_shares:
                 log.msg(format="share SI=%(si_s)s shnum=%(shnum)s unexpectedly disappeared",
                         si_s=si_s, shnum=shnum, level=log.WEIRD)
-                self._leasedb.remove_deleted_share(si_a2b(si_s), shnum)
+                # This is temporarily disabled, because it results in failures if we're examining
+                # a prefix while a share is created in it (ticket #1921).
+                #self._leasedb.remove_deleted_share(si_a2b(si_s), shnum)
 
             recovered_sharesets = [set() for st in xrange(len(SHARETYPES))]