[tor-commits] [metrics-tasks/master] Fix edge case where we'd corrupt our merged table (#8462).

karsten at torproject.org karsten at torproject.org
Thu May 2 19:39:42 UTC 2013


commit c09aa4ee5c8a1bc454d69b899f1dd113138f2446
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu May 2 21:29:17 2013 +0200

    Fix edge case where we'd corrupt our merged table (#8462).
---
 task-8462/init-userstats.sql |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/task-8462/init-userstats.sql b/task-8462/init-userstats.sql
index c586285..7c5df3d 100644
--- a/task-8462/init-userstats.sql
+++ b/task-8462/init-userstats.sql
@@ -388,6 +388,8 @@ BEGIN
       last_start := cur.merged_start;
       last_end := cur.merged_end;
       last_val := cur.merged_val;
+      undo_end := NULL;
+      undo_val := NULL;
     END IF;
   END LOOP;
 



More information about the tor-commits mailing list