author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 7 Sep 2008 07:19:03 +0000 (07:19 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 7 Sep 2008 07:19:03 +0000 (07:19 +0000) | ||
commit | 35412d5f3b33b2b297b146ec6e92e975df4a3390 | |
tree | 82386aef6778eff60099fd3c40999aff5e78996d | tree | snapshot |
parent | 7b9632ceafbf537865615df370049cc628650cb0 | commit | diff |
The attached patch eliminates the many places where the rra_current pointer was maintained; the existing write/seek mechanisms update rrd_file->pos correctly.
Also, the seek at the front of process_arg is not necessary; write_to_rras will now take care to correct the file position at every update cycle.
This eliminates unnecessary rrd_seek() calls when MMAP is not enabled. -- kevin brintnall kbrint rufus.net
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1488 a5681a0c-68f1-0310-ab6d-d61299d08faa
Also, the seek at the front of process_arg is not necessary; write_to_rras will now take care to correct the file position at every update cycle.
This eliminates unnecessary rrd_seek() calls when MMAP is not enabled. -- kevin brintnall kbrint rufus.net
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1488 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_update.c | diff | blob | history |