summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf7d030)
raw | patch | inline | side by side (parent: bf7d030)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 26 Apr 2003 05:11:27 +0000 (05:11 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sat, 26 Apr 2003 05:11:27 +0000 (05:11 +0000) |
src/rrd_restore.c | patch | blob | history |
diff --git a/src/rrd_restore.c b/src/rrd_restore.c
index 4371d659c996e78b7dd282d2d42c4d9c811ce9ee..f3764dac6ce21042dc38d55778586cbf09198f9d 100644 (file)
--- a/src/rrd_restore.c
+++ b/src/rrd_restore.c
free(rrd -> stat_head);
return -1;
}
+ if (atoi(rrd -> stat_head -> version) < 2)
+ {
+ rrd_set_error("Can only restore version >= 2 (Not %s). Dump your rrd using a current rrdtool dump.", rrd -> stat_head -> version );
+ free(rrd -> stat_head);
+ return -1;
+ }
rrd->stat_head->float_cookie = FLOAT_COOKIE;
rrd->stat_head->ds_cnt = 0;
rrd->stat_head->rra_cnt = 0;