From 202c73af331601bcc837a955be6275acaca1f238 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 30 May 2008 22:31:13 -0700 Subject: [PATCH] Delete obsolete sub-block signatures when garbage collecting. --- lbs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lbs.py b/lbs.py index c2fd75b..392bb04 100644 --- a/lbs.py +++ b/lbs.py @@ -541,6 +541,11 @@ class LocalDatabase: where expire_time < ?)""", (last_snapshotid,)) + # Remove sub-block signatures for deleted objects. + cur.execute("""delete from subblock_signatures + where blockid not in + (select blockid from block_index)""") + # Segment cleaning. class SegmentInfo(Struct): pass -- 2.20.1