From: Michael Vrable Date: Wed, 9 Jan 2008 21:20:50 +0000 (-0800) Subject: Minor fix to segment cleaning. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=d68fe153b690ebdb5cb84c027fc094e6f77a2bb5;p=cumulus.git Minor fix to segment cleaning. Previously, all objects were marked to be rewritten, instead of merely those in segments marked for cleaning. Properly handle this. --- diff --git a/lbs.py b/lbs.py index 4d2641f..5213b89 100644 --- a/lbs.py +++ b/lbs.py @@ -733,5 +733,6 @@ class LocalDatabase: cutoffs.reverse() for i in range(len(cutoffs)): cur.execute("""update block_index set expired = ? - where round(? - timestamp) > ?""", + where round(? - timestamp) > ? + and expired is not null""", (i, now, cutoffs[i]))