summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul J Stevens <paul@nfg.nl>2009-09-19 22:30:14 +0200
committerPaul J Stevens <paul@nfg.nl>2009-09-19 22:30:14 +0200
commit172f1d03b4c47df4da4f34be52d4ea4bec90d6cb (patch)
treedfcbd55f8f64582b7f55d7968d9328b8a9f3b3d0
parenteb58a77973dc114588e4643e4743b4954b4e70c1 (diff)
fix regression in integrity check
-rw-r--r--src/dm_db.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dm_db.c b/src/dm_db.c
index b48f7f6c..959412d3 100644
--- a/src/dm_db.c
+++ b/src/dm_db.c
@@ -1173,7 +1173,6 @@ int db_icheck_physmessages(gboolean cleanup)
*id = db_result_get_u64(r, 0);
ids = g_list_prepend(ids, id);
}
-
if (cleanup) {
while(ids) {
db_exec(c, "DELETE FROM %sphysmessage WHERE id = %llu", DBPFX, *(u64_t *)ids->data);
@@ -1181,6 +1180,7 @@ int db_icheck_physmessages(gboolean cleanup)
ids = g_list_next(ids);
}
}
+ t = g_list_length(ids);
g_list_destroy(ids);
CATCH(SQLException)
LOG_SQLERROR;
@@ -1214,6 +1214,7 @@ int db_icheck_partlists(gboolean cleanup)
ids = g_list_next(ids);
}
}
+ t = g_list_length(ids);
g_list_destroy(ids);
CATCH(SQLException)
LOG_SQLERROR;
@@ -1246,6 +1247,7 @@ int db_icheck_mimeparts(gboolean cleanup)
ids = g_list_next(ids);
}
}
+ t = g_list_length(ids);
g_list_destroy(ids);
CATCH(SQLException)
LOG_SQLERROR;