From d68fe153b690ebdb5cb84c027fc094e6f77a2bb5 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Wed, 9 Jan 2008 13:20:50 -0800 Subject: [PATCH] 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. --- lbs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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])) -- 2.20.1