projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef6894c
)
Delete obsolete sub-block signatures when garbage collecting.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Sat, 31 May 2008 05:31:13 +0000
(22:31 -0700)
committer
Michael Vrable
<mvrable@turin.ucsd.edu>
Sat, 31 May 2008 05:31:13 +0000
(22:31 -0700)
lbs.py
patch
|
blob
|
history
diff --git
a/lbs.py
b/lbs.py
index
c2fd75b
..
392bb04
100644
(file)
--- 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