]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
The attached patch eliminates the many places where the rra_current pointer was maint...
authorTobias Oetiker <tobi@oetiker.ch>
Sun, 7 Sep 2008 07:19:03 +0000 (07:19 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 7 Sep 2008 07:19:03 +0000 (07:19 +0000)
commite0a19af95916efb78e6ff8fdc3de9b4e7d35af4b
treee6d1c81db2d4a2bda83198354bf8f438a638dcd5
parentbf044a018276c7a546b46726757f2aad4baa8a52
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/program@1488 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_update.c