Code

Removed bts428780-validate-row-count.
authorSebastian Harl <sh@tokkee.org>
Fri, 25 Jul 2008 09:29:24 +0000 (11:29 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 25 Jul 2008 09:29:24 +0000 (11:29 +0200)
This is included in upstream version 1.3.

debian/changelog
debian/patches/bts428780-validate-row-count [deleted file]
debian/patches/series

index d6501b5f759ce67ca861deb94ebb20ab49630be1..020e1fb73bf575b4681868451d04d9d626829380 100644 (file)
@@ -1,8 +1,11 @@
 rrdtool (1.3.1-2) experimental; urgency=low
 
   * Reupload to unstable - thanks to Marc 'HE' Brockschmidt for the approval.
+  * debian/patches:
+    - Removed bts428780-validate-row-count - this is included in upstream
+      version 1.3.
 
- -- Sebastian Harl <sh@tokkee.org>  Fri, 25 Jul 2008 11:23:41 +0200
+ -- Sebastian Harl <sh@tokkee.org>  Fri, 25 Jul 2008 11:28:29 +0200
 
 rrdtool (1.3.1-1) experimental; urgency=low
 
diff --git a/debian/patches/bts428780-validate-row-count b/debian/patches/bts428780-validate-row-count
deleted file mode 100644 (file)
index e72bbb1..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-diff a/doc/rrdcreate.pod b/doc/rrdcreate.pod
---- a/doc/rrdcreate.pod
-+++ b/doc/rrdcreate.pod
-@@ -184,6 +184,7 @@ I<steps> defines how many of these I<primary data points> are used to build
- a I<consolidated data point> which then goes into the archive.
- I<rows> defines how many generations of data values are kept in an B<RRA>.
-+Obviously, this has to be greater than zero.
- =back
-diff a/src/rrd_create.c b/src/rrd_create.c
---- a/src/rrd_create.c
-+++ b/src/rrd_create.c
-@@ -207,6 +207,7 @@ rrd_create_r(const char *filename,
-             char *argvcopy;
-           char *tokptr;
-           size_t old_size = sizeof(rra_def_t)*(rrd.stat_head->rra_cnt);
-+          int row_cnt;
-           if((rrd.rra_def = rrd_realloc(rrd.rra_def,
-                                           old_size+sizeof(rra_def_t)))==NULL)
-           {
-@@ -269,7 +270,10 @@ rrd_create_r(const char *filename,
-                     case CF_SEASONAL:
-                     case CF_DEVPREDICT:
-                     case CF_FAILURES:
--                        rrd.rra_def[rrd.stat_head->rra_cnt].row_cnt = atoi(token);
-+                        row_cnt = atoi(token);
-+                        if (row_cnt <= 0)
-+                            rrd_set_error("Invalid row count: %i", row_cnt);
-+                        rrd.rra_def[rrd.stat_head->rra_cnt].row_cnt = row_cnt;
-                         break;
-                     default:
-                         rrd.rra_def[rrd.stat_head->rra_cnt].par[RRA_cdp_xff_val].u_val = atof(token);
-@@ -350,7 +354,10 @@ rrd_create_r(const char *filename,
-                         rrd_set_error("Unexpected extra argument for consolidation function DEVPREDICT");
-                         break;
-                     default:
--                        rrd.rra_def[rrd.stat_head->rra_cnt].row_cnt = atoi(token);
-+                        row_cnt = atoi(token);
-+                        if (row_cnt <= 0)
-+                            rrd_set_error("Invalid row count: %i", row_cnt);
-+                        rrd.rra_def[rrd.stat_head->rra_cnt].row_cnt = row_cnt;
-                         break;
-                     }
-                     break;
index ee2f08a9b581b8b3579d16ba57a1d8fe67c4c3de..69cecaaf69d7d1e3dd0691a382f19e6017caaff2 100644 (file)
@@ -1,5 +1,4 @@
 bts428778-floating-point-exception
-bts428780-validate-row-count
 setup.py-module-name
 no-rpath-for-ruby
 no-rpath-for-perl