X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=lbs.py;h=392bb0419274229c4f3545362db61d7b44c577c3;hb=202c73af331601bcc837a955be6275acaca1f238;hp=c2fd75b3156249083243c5bbf971ad2527abb4eb;hpb=ef6894c21aee7047b3b105f8e373a06b016f7dad;p=cumulus.git 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