summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9c4ebe8)
raw | patch | inline | side by side (parent: 9c4ebe8)
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) |
program/src/rrd_restore.c | patch | blob | history |
index 4371d659c996e78b7dd282d2d42c4d9c811ce9ee..f3764dac6ce21042dc38d55778586cbf09198f9d 100644 (file)
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;