projects
/
cumulus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cdcf66f
)
Reworking cleanup.
author
Michael Vrable
<vrable@cs.hmc.edu>
Mon, 18 Mar 2013 17:21:14 +0000
(10:21 -0700)
committer
Michael Vrable
<vrable@cs.hmc.edu>
Wed, 22 Jan 2014 05:11:09 +0000
(21:11 -0800)
python/cumulus/__init__.py
patch
|
blob
|
history
diff --git
a/python/cumulus/__init__.py
b/python/cumulus/__init__.py
index
10f0544
..
e8fc538
100644
(file)
--- a/
python/cumulus/__init__.py
+++ b/
python/cumulus/__init__.py
@@
-729,16
+729,15
@@
class LocalDatabase:
"""
cur = self.cursor()
"""
cur = self.cursor()
- # Delete entries in the segment
s_used table which are for non-existent
- # snapshots.
- cur.execute("""delete from segment
s_used
+ # Delete entries in the segment
_utilization table which are for
+ #
non-existent
snapshots.
+ cur.execute("""delete from segment
_utilization
where snapshotid not in
(select snapshotid from snapshots)""")
where snapshotid not in
(select snapshotid from snapshots)""")
- # Find segments which contain no objects used by any current snapshots,
- # and delete them from the segment table.
+ # Delete segments not referenced by any current snapshots.
cur.execute("""delete from segments where segmentid not in
cur.execute("""delete from segments where segmentid not in
- (select segmentid from segment
s_used
)""")
+ (select segmentid from segment
_utilization
)""")
# Delete dangling objects in the block_index table.
cur.execute("""delete from block_index
# Delete dangling objects in the block_index table.
cur.execute("""delete from block_index