[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit c09aa4ee5c8a1bc454d69b899f1dd113138f2446
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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;
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits